Manuals >Reference >Controlling IC-CAP from Another Application Print version of this Book (PDF file) |
![]() ![]() |
||||||||||||
|
|||||||||||||
To Compile Using the LibraryOther files provided by IC-CAP to establish an IPC link include the following:
In IC-CAP 2004, the name of the static library changed from libiclinklib.a to libiclinklibs.a.
To compile your application with the static library, add -liclinklibs to the compile command along with -L$ICCAP_ROOT/lib/<pltfm> -liclinklibs where <pltfm> is sol2x or hpux10. In general, the static library (libiclinklibs.a) will be sufficient, but if you want to use the shared version (libiclinklib.sl or libiclinklib.so), it is also provided. To compile your application with the shared library, add -liclinklib to the compile command along with -L$ICCAP_ROOT/lib/<pltfm> -liclinklib where <pltfm> is sol2x or hpux10. For the Sun compiler, use the -Bstatic or -Bdynamic option to choose between the 2 libraries. Solaris ExamplesTo use the static iclinklibs library, and use shared libraries for all others (libc, etc.): cc program.c -L$ICCAP_ROOT/lib/sol2x -Bstatic -liclinklibs -Bdynamic To use static libraries for everything: cc program.c -L$ICCAP_ROOT/lib/sol2x -Bstatic -liclinklibs To use shared libraries for everything: cc program.c -L$ICCAP_ROOT/lib/sol2x -Bdynamic -liclinklib cc program.c -L$ICCAP_ROOT/lib/sol2x -liclinklib |
|||||||||||||
|
|||||||||||||
![]() ![]() |