ESQL/C & shared libraries?
Posted in 1996
Folks, I've run across an interesting problem compiling ESQL/C code on a Stratus FTX (SysV.4) system using 7.11 OnLine. I'm trying to create dynamically-linked shared libraries and the ESQL/C functions seem to be a problem. What I'm doing is creating a shared object file called libaedbcom.so. This contains functions for our API that get data from the database. This is a .ec file that we're compiling with the -G flag to create shared objects. Everything compiles and links OK, until you try to run the code. Then you get a "relocation error 18" when you try to run the executable. When I manually go into the .c code generated by the compiler, if I comment out all of the "_iq" functions, the program will run without crashing (or actually doing anything either). If I just compile the code without trying to create a shared library, the code works fine. Any ideas? How about it from the inestimable Mr/Ms Leffler, Tong, Kosenko, and all the Informix source-code hackers? Am I trying to do the impossible? TIA Joe -- --------------------------------------------------------------------------- Joe Lumbley(jlumbley@netcom.com) Dallas, Texas ----------------------------------------------------------------------------