Re: Dynamic Link for ESQL/C ?
Posted in 1996
Hi, In 7.20 on Solaris, at any rate, the flag for shared libraries is '-shared' rather than '-dynamic', though shared libraries are the default. However, since neither 7.10.UC1 nor 7.13.UC1 on Solarishas support for either '-shared' or '-dynamic', I cannot tell you what happens on platforms which do support shared libraries at version 7.1x. Yours, Jonathan Leffler (johnl@informix.com) #include <disclaimer.h> }From: Bill Ennis <ennis@ssax.com> }Date: Fri, 11 Oct 96 13:24:51 CDT }X-Informix-List-Id: <list.11719> } }You're right static is the default (at least up until version 7.2) }All you have to do is specify -dynamic on the command line of the esql }command. The libaries are contained in $INFORMIXDIR/lib/esql. Below }is an ls output from this directory on our system. The shared libs }have a shr contained in the names. } }(inf)bigblue> ls }esqlc libgen.a libinfxxa.a libos.a libsql.a }ixacursor.o libgenshr.a libinfxxashr.a libosshr.a libsqlshr.a } }> We have an application with several dozen ESQL/C programs, and the default }> linkage seems to be static. The binaries are large, even after stripping }> them. I can't find a dynamic link (shared) library to link against. I know }> about the shared library for 4GL, but I can't find one for ESQL/C. I don't }> see anything in the FAQ. }> }> Does anyone know any library names or linkage incantations? We're running }> Online 7.12 on AIX.