(Q) Thread Question
Posted in 2000
Topics: General Discussion
Hi, I have two questions. Question 1) I get a compile error like below ild :(undefined symbol) ifx_sqlca ... What library I should link ? I have a INFORMIX Dynamic Server Version 7.31 Question 2) In INFORMIX Dynamic Server Version 7.31, what thread package are supported ? Thanks in advance
In article <39479AAA.CC6CCC78@chollian.net>, KIM YONG SOO <kys2906@chollian.net> wrote: > Hi, > I have two questions. > > Question 1) > > I get a compile error like below > > ild :(undefined symbol) ifx_sqlca ... > > What library I should link ? The esql compiler is giving you this error? > > I have a INFORMIX Dynamic Server Version 7.31 > > Question 2) > > In INFORMIX Dynamic Server Version 7.31, what thread package are > supported ? > Depends on your platform. Look in $INFORMIXDIR/release/en_us/0333/ESQL_*. The path could be wrong, I'm not sure that they put it in the same place on 7.31, but that's where it is on 7.2x. > Thanks in advance > > -- # unrm / ksh: unrm: not found # man cpio Sent via Deja.com http://www.deja.com/ Before you buy.
KIM YONG SOO wrote: > > Hi, > I have two questions. > > Question 1) > > I get a compile error like below > > ild :(undefined symbol) ifx_sqlca ... > > What library I should link ? Just let the esql compiler driver do your linking. If you MUST link yourself you can ask esql which libraries to include on your version and platform with 'esql -libs' including any other significant options that may affect which libs you will need like -static or -thread. > I have a INFORMIX Dynamic Server Version 7.31 > > Question 2) > > In INFORMIX Dynamic Server Version 7.31, what thread package are > supported ? Depends on the platform. Usually POSIX and DCE, if both are available, are supported but look in the release notes. Art S. Kagel
> > > Question 1) > > > > I get a compile error like below > > > > ild :(undefined symbol) ifx_sqlca ... > > > > What library I should link ? > > The esql compiler is giving you this error? > > Hi, Thank you for your reply. 1) First, I preprocess my program with esql complier esql -thread -e myprogram.ec mv myprogram.c myprogram.cc 2) Second, I compile my program with C++ complier CC $(CC_FLAGS) -DIFX_THREAD -c myprogram.cc 3) Last, I link all my programs and libraries for execution program CC $(CC_FLAGS) $(INFORMIXDIR)/lib/esql/checkapi.o -o execprog -lifsql -lifasf -lifgen -lifos -lifgls -laio -lm -lelf -lifglx -lthxa Here, I get a link error like below ild :(undefined symbol) ifx_sqlca ... What library I should link ? I have a INFORMIX Dynamic Server Version 7.31 Thanks in advance
"Art S. Kagel" wrote: > KIM YONG SOO wrote: > > > > Hi, > > I have two questions. > > > > Question 1) > > > > I get a compile error like below > > > > ild :(undefined symbol) ifx_sqlca ... > > > > What library I should link ? > > Just let the esql compiler driver do your linking. If you MUST link > yourself you can ask esql which libraries to include on your version and > platform with 'esql -libs' including any other significant options that may > affect which libs you will need like -static or -thread. > > Hi, Thank you for your reply. 1) First, I preprocess my program with esql complier esql -thread -e myprogram.ec mv myprogram.c myprogram.cc 2) Second, I compile my program with C++ complier CC $(CC_FLAGS) -DIFX_THREAD -c myprogram.cc 3) Last, I link all my programs and libraries for execution program CC $(CC_FLAGS) $(INFORMIXDIR)/lib/esql/checkapi.o -o execprog -lifsql -lifasf -lifgen -lifos -lifgls -laio -lm -lelf -lifglx -lthxa Here, I get a link error like below ild :(undefined symbol) ifx_sqlca ... What library I should link ? I have a INFORMIX Dynamic Server Version 7.31 Thanks in advance