USING CC INSTEAD OF ESQL
Posted in 1995
K> From: kaa@MCS.COM (Kayode Akanni) K> I want to be able to use cc instead of esql to link object files in > a project I am presently working on. However, I still get undefined > errors after I have what I consider the relevant libraries on the link > line ( -lsql -lgen -lasf netlib.a -los -lnsl). My goal is to create an > archive library of esql routines that I can then call in a C/C++ code. > Anybody get an opening on this one? This is slightly different than your request, but should help. In 4gl, you can include your own libraries (made by compiling to .o and using ar to make a .a) by passing the library to c4gl. This can be done through make, through the command line use of c4gl or modifying c4gl itself. The key is that your libraries have to appear before lib4gl.a, libnforms.a, etc. a cc would look (in part) like this: cc -I$INFDIR/incl yourlibrary.a $INFDIR/lib/lib4gl.a ... Tim --- ~ SPEED 1.40 [NR] ~