dbTalk Databases Forums  

Informix Shared Library Trouble

comp.databases.informix comp.databases.informix


Discuss Informix Shared Library Trouble in the comp.databases.informix forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
vipin85@gmail.com
 
Posts: n/a

Default Informix Shared Library Trouble - 12-28-2007 , 07:28 AM






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.


Reply With Quote
  #2  
Old   
richard.harnden@googlemail.com
 
Posts: n/a

Default Re: Informix Shared Library Trouble - 12-28-2007 , 08:50 AM






On 28 Dec, 12:28, vipi... (AT) gmail (DOT) com wrote:
Quote:
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.



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.