Link static HCL OneDB general libraries into an ESQL/C module

To link static HCL OneDB™ general libraries with the module, compile your program with the -static command-line option.

The following command links the static non-thread-safe HCL OneDB libraries with the file.exe executable file:
esql -static file.ec -o file.exe
The esql command can also link the code for thread-safe shared HCL OneDB general libraries with the application.
Tip: The esql command for pre-version 7.2 products linked static versions of the HCL OneDB general libraries. Because the esql command links shared versions of these libraries by default, you must specify the -static option to link the static versions with your application.