Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-Id: <3.0.5.32.19991129195854.00b9e6c0@pop-server> X-Sender: jgalkowski AT pop-server X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Mon, 29 Nov 1999 19:58:54 -0500 To: TS From: Jan Theodore Galkowski Subject: Re: undefined references Cc: cygwin AT sourceware DOT cygnus DOT com In-Reply-To: <19991129095433.27129.rocketmail@web1401.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id UAA05333 At 01:54 AM 11/29/99 -0800, TS wrote: >I have to compile ESQL/C-Source with Cygwin. I have a >preprocessor that makes c-source out of my >ESQL/C-source. To compile this resulting c-source with >a standard unix compiler, I have to use some special >libraries. If I do this with SCO-Unix 5, the resulting >program works fine. If I use Cygwin, the result is: > > bash-2.02:[/usr/Demo/usr2/cygwin/tom_ec]$ make -f >tom_demo.mak > > gcc -c -DBARTELT -DOAK_SCOUNIX >-I/usr/demo/informix/incl/esql tomc.c > gcc tomc.o -o tomc.exe libs/libsql.a libs/libos.a >libs/libasf.a libs/libgen.a libs/libos.a libs/libgen.a >libs/libnsl_s.a libs/libcrypt_i.a libs/libsocket.a >libs/libm.a > tomc.o(.text+0xb4):tomc.c: undefined reference to >`sqlca' > tomc.o(.text+0xce):tomc.c: undefined reference to >`_iqdbase' > tomc.o(.text+0xd6):tomc.c: undefined reference to >`sqlca' > tomc.o(.text+0x102):tomc.c: undefined reference to >`_iqlocate_cursor' > tomc.o(.text+0x10d):tomc.c: undefined reference to >`_iqcdcl' > tomc.o(.text+0x115):tomc.c: undefined reference to >`sqlca' > tomc.o(.text+0x13a):tomc.c: undefined reference to >`_iqlocate_cursor' > tomc.o(.text+0x145):tomc.c: undefined reference to >`_iqdcopen' > tomc.o(.text+0x14d):tomc.c: undefined reference to >`sqlca' > tomc.o(.text+0x17f):tomc.c: undefined reference to >`_iqlocate_cursor' > tomc.o(.text+0x18a):tomc.c: undefined reference to >`_iqcftch' > tomc.o(.text+0x192):tomc.c: undefined reference to >`sqlca' > collect2: ld returned 1 exit status > make: *** [tomc.exe] Error 1 > > bash-2.02:[/usr/Demo/usr2/cygwin/tom_ec]$ > > >My makefile looks like this and is used for both unix >and cygwin: > ># Makefile fuer TOMC.EC > >KUNDE = BARTELT >DL_OAK = OAK_SCOUNIX >INF_INCL = -I/usr/demo/informix/incl/esql >LIBS = libs/libsql.a libs/libos.a libs/libasf.a >libs/libgen.a libs/libos.a libs/libgen.a >libs/libnsl_s.a libs/libcrypt_i.a libs/libsocket.a >libs/libm.a >CFLAGS = -D$(KUNDE) -D$(DL_OAK) $(INF_INCL) > >tomc.exe: tomc.o > gcc tomc.o -o tomc.exe $(LIBS) > >tomc.o: tomc.c > gcc -c $(CFLAGS) tomc.c > >#Ende Makefile > > >What is the reason for this errors? Are the libraries >in a wrong format? What am I doing wrong? If someone >wants to help, I can mail the source files and the >libraries. > >I'm using Windows NT 4 SP 5 > SCO Unix Open Server 5 > Cygwin b20.1 with dll from 15.01.1999 What's your database? Since it's not in the list and the errors all appear to be database related, it appears that you failed to mention the appropriate database libraries or archives for your program to link with. --jt > >Here's my "cygcheck -s -v -r": > > >Cygnus Win95/NT Configuration Diagnostics >Current System Time: Mon Nov 29 10:45:55 1999 > >WinNT Ver 4.0 build 1381 Service Pack 5 > >Path: /bin > /WINNT/system32 > /WINNT > . > >SysDir: C:\WINNT\System32 >WinDir: C:\WINNT > >CYGWIN32 = `tty' >HOME = `/usr/Labor2/usr2/home/thomas/eigene >dateien/cygwin/examples' >MAKE_MODE = `UNIX' >PWD = `/usr/Labor2/usr2/home/thomas/eigene >dateien/cygwin/examples' > >!C: = `C:\' >ALARMDEV = `' >BS = `SCO' >CLASSPATH = >`.;C:\VisualCafe\JAVA\LIB;C:\VisualCafe\JAVA\LIB\SYMCLASS.ZIP;C:\VisualCafe \JAVA\LIB\CLASSES.ZIP;C:\VisualCafe\JFC\SWINGALL.JAR;C:\VisualCafe\BIN\COMPO NENTS\SFC.JAR;C:\VisualCafe\BIN\COMPONENTS\SYMBEANS.JAR;C:\VisualCafe\JAVA\L IB\DBAW.ZIP;C:\VisualCafe\BIN\COMPONENTS\DBAW_AWT.JAR;C:\VisualCafe\BIN\COMP ONENTS\Databind.JAR;C:\VisualCafe\JAVA\LIB\Collections.zip;C:\VisualCafe\JAV A\LIB\icebrowserbean.jar;C:\VisualCafe\JAVA\LIB\jsdk.jar;C:\VisualCafe\JAVA\ LIB\SYMTOOLS.JAR;C:\VisualCafe\JAVA\LIB\Olite35.JAR' >CLIENT_LOCALE = `german_germany.8859' >COLLCHAR = `0' >COMPUTERNAME = `PC_SCHOBER' >COMSPEC = `C:\WINNT\system32\cmd.exe' >CSCAPEDIR = `/usr/Demo/usr2/users/lab/cscape' >D = >`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/dl' >DATABASE = `labor' >DBDATE = `DMY4/' >DBLANG = `2' >DB_LOCALE = `german_germany.8859' >DL = >`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/dl' >DL_OAK = `OAK_SCOUNIX' >DL_UTIL = >`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/dl/util' >ENGINE = `ONLINE' >EXINIT = `set noai number showmode tabstop=4 >timeout=300' >HOMEDRIVE = `C:' >HOMEPATH = `\' >HOSTNAME = `pc_schober' >HOSTTYPE = `i586' >I = >`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/io' >INFORMIXDIR = `/usr/demo/informix' >INFORMIXSERVER = `demo' >IO = >`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/io' >IO_UTIL = >`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/io/util' >KUNDE = `BARTELT' >L2USR2 = `/usr/Labor2/usr2' >LANG = `german_germany.8859' >LC_COLLATE = `german_germany.8859' >LOGONSERVER = `\\BAG-HANDEL' >MACHTYPE = `i586-pc-cygwin32' >NTSOURCE = >`/usr/Labor2/usr2/projekt/dlio/nt/develop/source' >NUMBER_OF_PROCESSORS = `1' >OS2LIBPATH = `C:\WINNT\system32\os2\dll;' >OS = `Windows_NT' >OSTYPE = `cygwin32' >PATHEXT = `.COM;.EXE;.BAT;.CMD' >PROCESSOR_ARCHITECTURE = `x86' >PROCESSOR_IDENTIFIER = `x86 Family 6 Model 7 Stepping >3, GenuineIntel' >PROCESSOR_LEVEL = `6' >PROCESSOR_REVISION = `0703' >PROMPT = `$P$G' >PS1 = `\s-\v:[$PWD]\$ ' >PS2 = `> ' >PS3 = `#? ' >PS4 = `+ ' >PSPAR = `-ef' >ROOTDIR = `C:/MKSDemo' >SERVER_LOCALE = `german_germany.8859' >SHELL = `C:/MKSDemo/mksnt/sh.exe' >SHLVL = `1' >SYSTEMDRIVE = `C:' >SYSTEMROOT = `C:\WINNT' >TEMP = `C:\TEMP' >TERM = `cygwin' >TMP = `C:\TEMP' >TMPDIR = `C:/TEMP' >USERDOMAIN = `HANDEL' >USERNAME = `schober' >USERPROFILE = `C:\WINNT\Profiles\schober' >USR2 = `/usr/Labor1/usr2' >USR3 = `/usr/Labor1/usr3' >USR4 = `/usr/Labor1/usr4' >USR5 = `/usr/Labor1/usr5' >WINDIR = `C:\WINNT' >_ = >`/Programme/cygwin/cygwin-b20/H-i586-cygwin32/bin/cygcheck' > >HKEY_CURRENT_USER\Software\Cygnus Solutions >HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL >setup >HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL >setup\b15.0 >HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL >setup\b15.0\mounts >HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL >setup\b15.0\mounts\00 > (default) = `f:\datalab\source' > unix = `usr/Demo/dummysql' > fbinary = 0x00000000 > fsilent = 0x00000000 >HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL >setup\b15.0\mounts\01 > (default) = `f:\users\informix' > unix = `/usr/demo/informix' > fbinary = 0x00000000 > fsilent = 0x00000000 >HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL >setup\b15.0\mounts\02 > (default) = `u:' > unix = `/usr/Labor2/usr2' > fbinary = 0x00000000 > fsilent = 0x00000000 >HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL >setup\b15.0\mounts\03 > (default) = `q:' > unix = `/usr/Labor1/usr5' > fbinary = 0x00000000 > fsilent = 0x00000000 >HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL >setup\b15.0\mounts\04 > (default) = `p:' > unix = `/usr/Labor1/usr4' > fbinary = 0x00000000 > fsilent = 0x00000000 >HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL >setup\b15.0\mounts\05 > (default) = `o:' > unix = `/usr/Labor1/usr3' > fbinary = 0x00000000 > fsilent = 0x00000000 >HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL >setup\b15.0\mounts\06 > (default) = `n:' > unix = `/usr/Labor1/usr2' > fbinary = 0x00000000 > fsilent = 0x00000000 >HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL >setup\b15.0\mounts\07 > (default) = `c:\WINNT\Profiles\schober\Eigene >Dateien\Cygwin\Examples' > unix = `/usr/Examples' > fbinary = 0x00000000 > fsilent = 0x00000000 >HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL >setup\b15.0\mounts\08 > (default) = `f:' > unix = `/usr/Demo/usr2' > fbinary = 0x00000001 > fsilent = 0x00000000 >HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL >setup\b15.0\mounts\09 > (default) = `f:\datalab\source' > unix = `/usr/Demo/dummysql' > fbinary = 0x00000000 > fsilent = 0x00000000 >HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL >setup\b15.0\mounts\0A > (default) = `c:\Programme\cygwin\cygwin-b20\etc' > unix = `/etc' > fbinary = 0x00000000 > fsilent = 0x00000000 >HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL >setup\b15.0\mounts\0B > (default) = >`c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin' > unix = `/bin' > fbinary = 0x00000000 > fsilent = 0x00000000 >HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL >setup\b15.0\mounts\0C > (default) = `C:' > unix = `/' > fbinary = 0x00000000 > fsilent = 0x00000000 >HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOr der\Start >Menu\&Programs\Cygnus Solutions > (default) = (unsupported type) >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin >B20 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin >B20\B20.1 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\00 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\01 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\02 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\03 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\04 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\05 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\06 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\07 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\08 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\09 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\0A >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\0B >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\0C >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\0D >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\0E >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\0F >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\10 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\11 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\12 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\13 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\14 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\15 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\16 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\17 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\18 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\19 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\1A >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\1B >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\1C >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\CYGWIN.DLL setup\b15.0\mounts\1D >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\GNUPro\i586-cygwin32 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\GNUPro\i586-cygwin32\i586-cygwin32 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus >Solutions\GNUPro\i586-cygwin32\i586-cygwin32\cygwin-B20.1 > (default) = `c:\programme\cygwin\cygwin-b20' >HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Cygnus >Cygwin B20 > (default) = `C:\WINNT\IsUninst.exe >-fc:\programme\cygwin\cygwin-b20\Uninst.isu' > DisplayName = `Cygwin B20' > >a:\ fd N/A N/A >c:\ hd NTFS 4031Mb 38% CP CS UN PA FC >d:\ hd NTFS 4024Mb 1% CP CS UN PA FC >e:\ cd N/A N/A >f:\ net NTFS 1562Mb 98% PA usr2 >m:\ net NTFS 996Mb 88% CP CS UN PA FC Disks >n:\ net Samba 292Mb 58% CP UN usr2 >o:\ net Samba 395Mb 90% CP UN usr3 >p:\ net Samba 341Mb 95% CP UN usr4 >q:\ net Samba 341Mb 64% CP UN usr5 >r:\ net NTFS 976Mb 100% PA >usr3disks >s:\ net NTFS 976Mb 100% PA >usr3share >u:\ net NTFS 6092Mb 70% CP CS UN PA FC usr2 > >C: > / native text!=binary >c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin > /bin native text!=binary >c:\Programme\cygwin\cygwin-b20\etc > /etc native text!=binary >f:\datalab\source > /usr/Demo/dummysql native text!=binary >f: > /usr/Demo/usr2 native text=binary >c:\WINNT\Profiles\schober\Eigene >Dateien\Cygwin\Examples /usr/Examples native >text!=binary >n: > /usr/Labor1/usr2 native text!=binary >o: > /usr/Labor1/usr3 native text!=binary >p: > /usr/Labor1/usr4 native text!=binary >q: > /usr/Labor1/usr5 native text!=binary >u: > /usr/Labor2/usr2 native text!=binary >f:\users\informix > /usr/demo/informix native text!=binary >f:\datalab\source > usr/Demo/dummysql native text!=binary > >Found: >c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\bash.exe >Found: >c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cat.exe >Not Found: cpp (good!) >Found: >c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\find.exe >Found: >c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\gcc.exe >Found: >c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\gdb.exe >Found: >c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\ld.exe >Found: >c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\ls.exe >Found: >c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\make.exe >Found: >c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\sh.exe > > 371k 1998/12/01 >c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygtcl80.dll >- os=4.0 img=1.0 sys=4.0 > "cygtcl80.dll" v0.0 ts=1998/12/1 >9:25 > 5k 1998/12/01 >c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygtclpip80.dll >- os=4.0 img=1.0 sys=4.0 > 10k 1998/12/01 >c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygtclreg80.dll >- os=4.0 img=1.0 sys=4.0 > "cygtclreg80.dll" v0.0 ts=1998/12/1 >9:25 > 600k 1998/12/01 >c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygtk80.dll >- os=4.0 img=1.0 sys=4.0 > "cygtk80.dll" v0.0 ts=1998/12/1 9:28 > 451k 1999/09/28 >c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygwin1.dll >- os=4.0 img=1.0 sys=4.0 > "cygwin1.dll" v0.0 ts=1999/1/16 6:09 > 446k 1998/12/03 >c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygwin1.original.dll >- os=4.0 img=1.0 sys=4.0 > "cygwin1.dll" v0.0 ts=1998/12/4 5:39 >Use -h to see help about each section > >__________________________________________________ >Do You Yahoo!? >Thousands of Stores. Millions of Products. All in one place. >Yahoo! Shopping: http://shopping.yahoo.com > >-- >Want to unsubscribe from this list? >Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com > > ______________________________________________________________________ Jan Theodore Galkowski °o° (:-)} demiourgos AT smalltalk DOT org www.smalltalk.org/ squeak.org/ www.ascent.com/books/stback.html jtgalkowski AT alum DOT mit DOT edu -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com