UltraLite Database User's Guide
Static Development Model Reference
This section describes compiler directives to supply for UltraLite C/C++ applications. Unless stated otherwise, directives apply to both embedded SQL and C++ API applications.
Compiler directives can be supplied on your compiler command line or in the compiler settings dialog box of your user interface. Alternatively, they can be defined in source code.
On the compiler command line, a compiler directive is commonly set by using the /D command-line 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 /D__NT__ /DUL_USE_DLL /DULB_USE_BIGINT_TYPES /DULB_USE_FLOAT_TYPES /DUL_ENABLE_USER_AUTH IncludeFolders= \ /I"$(VCDIR)\include" \ /I"$(ASANY9)\h" sample.obj: sample.cpp cl $(CompileOptions) $(IncludeFolders) sample.cpp
where VCDIR is your Visual C++ directory and ASANY9 is your SQL Anywhere directory.
In source code, directives are supplied using the #define
statement.
UL_AS_SYNCHRONIZE macro
UL_ENABLE_OBFUSCATION macro
UL_ENABLE_USER_AUTH macro
UL_ENABLE_SEGMENTS macro
UL_STORE_PARMS macro
UL_SYNC_ALL macro
UL_SYNC_ALL_PUBS macro
UL_TEXT macro
UL_USE_DLL macro
UNDER_NT macro
UNDER_CE macro
UNDER_PALM_OS macro