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.
Add the .sqc files to your development project.
The development project is defined in your development tool.
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.
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.
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.
Discuss this page in DocCommentXchange.
|Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0|