Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.1 » UltraLite - C and C++ Programming » API reference » UltraLite C/C++ common API reference


Macros and compiler directives for UltraLite C/C++ applications

Unless otherwise stated otherwise, directives apply to both embedded SQL and C++ API applications.

You can supply compiler directives:

  • On your compiler command line. You commonly set a directive with the /D option. For example, to compile an UltraLite application with user authentication, a makefile for the Microsoft Visual C++ compiler may look as follows:

    CompileOptions=/c /DPRWIN32 /Od /Zi /DWIN32
    IncludeFolders= \
    /I"$(VCDIR)\include" \
    sample.obj: sample.cpp
     cl $(CompileOptions) $(IncludeFolders) sample.cpp

    VCDIR is your Visual C++ directory and SQLANY12 is your SQL Anywhere installation directory.

  • In the compiler settings window of your user interface.

  • In source code. You supply directives with the #define statement.

UL_USE_DLL macro
UNDER_CE macro