TRIPsystem Kernel API 8.3
Loading...
Searching...
No Matches
Compiling and Linking

Linux/UNIX

To compile and link TRIPtoolkit programs and libraries such ase ASEs on Linux and Solaris, make sure that the compiler directive includes the TRIPsystem include directory. You can derive this location using the following expression for your compilation directive in a makefile:

-I$(shell dirname `readlink /usr/local/trip/sys/lib`)/include

This way, you don't have to change your makefiles when upgrading your TRIPsystem installation.

Similarly, to link your executable or library, you must specify the link directory /usr/local/trip/sys/lib as the library path to the linker before specifying the dependency on libtdbs.so:

-L/usr/local/trip/sys/lib -ltdbs

Just specifying -ltdbs is not guaranteed to work.

Windows

When building TRIPtoolkit programs and libraries on Windows, using Microsoft Visual Studio is recommended.

  • Add the TRIPsystem include directory to the "Additional Include Directories" property of your project.
  • Add the TRIPsystem lib directory to the "Additional Library Directories" property of your project.
  • Add the tdbsrtl.lib file to the "yAdditional Dependencies" property of your project.

With all the above in place in your Visual Studio C/C++ project, you should be able to compile and link your TRIPtoolkit program.