Re: Please Help with compiling of esql/c program
Posted in 1993
In article <1993Mar13.030113.21235@hubcap.clemson.edu> dpotlur@hubcap.clemson.edu (Potluri Dora) writes: >Hello netters, > I have a esql/c source file that compiles as a standalone. >If nothing is linked to it and if I use the esql script it compiles >with out any problems. > Now my task is to integrate with some other Xm (motif >code). I compile it in the following steps: > >STEP 1: esql -c db_gui_interface.ec -I/usr/local/uimx2.0/include >-I/usr/lib/DXM/lib -I/usr/include/X11 -I/usr/lib/DXM/lib/Xt > > This step works file it compiles to db_gui_interface.o >with out any errors. > >STEP 2: I link the .o file that I obtained earlier with other > .o files to make an executable file as follows. > >cc biis.o welcome_biis.o categories.o query_window.o hitbrowser.o >category_aux.o llist.o db_gui_interface.o -L/usr/lib/DXM/lib/Xt -L/usr/lib/DXM/lib/Xm -L/usr/local/uimx2.0/lib -L/usr/informix/lib/esql/libsql.a -luimx -lXm >-lXt -lX11 -lm -o biis > >The following are the error messages: >ld: >Undefined: >_iqlocate_cursor >... This illustrates why trying to link ESQL programs manually is not a good idea... You should do your linking using the "esql" script to ensure that you are getting all of the appropriate libraries. If you insist on linking manually, you must make absolutely sure that you include all libraries that the esql script does (for example, you lack libgen.a and libos.a). >Potluri Dora -- Alan Denney aland@informix.com {pyramid|uunet}!infmx!aland "We must learn to live to live together as brothers or we shall perish together as fools." -- Dr. Martin Luther King, Jr.