Building on Windows platforms  Linking the application

Chapter 4: Building a Monitor Client Library Application

Compiling the application

To compile a Monitor Client Library application on a Windows platform:

  1. Include the following line in each source file that uses Monitor Client Library:

    #include "mcpublic.h"
    
  2. Include the path of the directory that contains the Monitor Client Library and Open Client header files in the list of directories (sometimes called the Include path) in which the C compiler preprocessor looks for header files. The header files for Monitor Client Library and Open Client are installed, by default, in the %SYBASE%\OCS-15_0\inlcude directory.

  3. Set the compiler preprocessor option to define the _WIN and WIN32 preprocessor macros.

  4. Set the code generation option to use the __cdecl calling convention.

NoteTo use a calling convention other than the default, you must declare it in each callback function that uses it.





Copyright © 2005. Sybase Inc. All rights reserved. Linking the application

View this book as PDF