Re: Informix Shared Library Trouble On 28 Dec, 12:28, vipi...@gmail.com wrote:
> I am trying to create a shared library written in C which is using
> lots of Informix functions such as `ibm_lib4gl_popQuotedStr'.
> Platform
> is Linux and compiler is GCC.
>
> But I am getting linker error, "undefined reference" for all the
> Informix functions that I use.
>
> LD_LIBRARY_PATH is set to the INFORMIXDR/lib, INFORMIXDR/lib/tools,
> *INFORMIXDR/lib/esql. I also added all the informix libraries using -
> l
> *option to GCC. Still the errors are happening.
>
> Can anybody give a clue on why this error is occurring? Can you
> please
> let me
> know the library that I should link to, for using the functions such
> as ibm_lib4gl_popQuotedStr?
>
> At least can someone please gimme a list of functions defined under
> each shared library ? So that I can include only those shared
> libraries.
Use c4gl, rather than gcc, to compile it. c4gl knows what libs to
link.
`ibm_lib4gl_popQuotedStr' is defined in fglsys.h
nm will tell you which .so has which functions, but you don't need to
know. |