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

SAP Sybase SQL Anywhere 16.0 » UltraLite - C and C++ Programming » Application development » UltraLite C++ application development using embedded SQL » Embedded SQL application building » Development tool configuration for embedded SQL development


Running the SQL preprocessor

Incorporate the SQL preprocessor into a dependency-based build environment by adding instructions to run the it for Visual C++.


There are no prerequisites for this task.

  1. Add the .sqc files to your development project.

    The development project is defined in your development tool.

  2. Add a custom build rule for each .sqc file.

    • The custom build rule should run the SQL preprocessor. In Visual C++, the build rule should have the following command (entered on a single line):

      "%SQLANY16%\Bin32\sqlpp.exe" -q -u $(InputPath) $(InputName).cpp

      where SQLANY16 is an environment variable that points to your SQL Anywhere installation directory.

    • Set the output for the command to $(InputName).cpp.

  3. Compile the .sqc files, and add the generated .cpp files to your development project.

    You need to add the generated files to your project even though they are not source files, so that you can set up dependencies and build options.

  4. For each generated .cpp file, set the preprocessor definitions.

    • Under General or Preprocessor, add UL_USE_DLL to the Preprocessor definitions.

    • Under Preprocessor, add $(SQLANY16)\SDK\Include and any other desired include folders to your include path as a comma-separated list.


The SQL preprocessor is configured for Visual C++ development.