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

SQL Anywhere 11.0.1 (Français) » UltraLite - C and C++ Programming » Application Development » Developing applications using Embedded SQL » Building embedded SQL applications


General build procedure

Sample code

You can find a makefile that uses this process in the samples-dir\UltraLite\ESQLSecurity directory.

Composants nécessaires sous licence distincte

Les cryptages ECC et certifié FIPS exigent une licence distincte. Toutes les technologies de cryptage fort sont soumises à la réglementation en matière d'exportation.

Pour plus d'informations, reportez-vous à la section Separately licensed components.

♦  To build an UltraLite embedded SQL application
  1. Run the SQL preprocessor on each embedded SQL source file.

    The SQL preprocessor is the sqlpp command line utility. It preprocesses the embedded SQL source files, producing C++ source files to be compiled into your application.

    For more information about the SQL preprocessor, see SQL Preprocessor for UltraLite utility (sqlpp).


    sqlpp overwrites the output file without regard to its contents. Ensure that the output file name does not match the name of any of your source files. By default, sqlpp constructs the output file name by changing the suffix of your source file to .cpp. When in doubt, specify the output file name explicitly, following the name of the source file.

  2. Compile each C++ source file for the target platform of your choice. Include:

    • each C++ file generated by the SQL preprocessor

    • any additional C or C++ source files required by your application

  3. Link all these object files, together with the UltraLite runtime library.