Re: Noobie, please help!
Gal Rubinstein <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
I dropped it, and got: [trace] Executing make clean rm -f ../common.o ../t0001.o t0001.exe gcc.exe -c ../common.c -o ../common.o -I"C:/MinGW/include" -I"C:/Gal/tmp/freetds-0.82/win32" -I"C:/Gal/tmp/freetds-0.82/include" -D__GNUWIN32__ -W -DWIN32 -DNDEBUG -D_CONSOLE -D_MBCS -DFREETDS_SRCDIR=\"..\" gcc.exe -c ../t0001.c -o ../t0001.o -I"C:/MinGW/include" -I"C:/Gal/tmp/freetds-0.82/win32" -I"C:/Gal/tmp/freetds-0.82/include" -D__GNUWIN32__ -W -DWIN32 -DNDEBUG -D_CONSOLE -D_MBCS -DFREETDS_SRCDIR=\"..\" g++.exe ../common.o ../t0001.o -o "t0001.exe" -L"C:/MinGW/lib" -L"C:/Dev-Cpp/lib" -L"C:/Gal/tmp/freetds-0.82/win32/dev-cpp" -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid ../../../../win32/dev-cpp/libFreeTDS.a ../common.o:common.c:(.text+0xa4): undefined reference to `tds_basename' ../common.o:common.c:(.text+0x5d7): undefined reference to `dbgetuserdata' ../common.o:common.c:(.text+0x797): undefined reference to `dbgetuserdata' ../common.o:common.c:(.text+0x867): undefined reference to `dbdead' ../t0001.o:t0001.c:(.text+0x88): undefined reference to `dbinit' ../t0001.o:t0001.c:(.text+0x99): undefined reference to `dberrhandle' ../t0001.o:t0001.c:(.text+0xa5): undefined reference to `dbmsghandle' ../t0001.o:t0001.c:(.text+0xcf): undefined reference to `dblogin' ../t0001.o:t0001.c:(.text+0xed): undefined reference to `dbsetlname' ../t0001.o:t0001.c:(.text+0x108): undefined reference to `dbsetlname' ../t0001.o:t0001.c:(.text+0x123): undefined reference to `dbsetlname' ../t0001.o:t0001.c:(.text+0x187): undefined reference to `dbsetlogintime' ../t0001.o:t0001.c:(.text+0x1fc): undefined reference to `tdsdbopen' ../t0001.o:t0001.c:(.text+0x244): undefined reference to `dbloginfree' ../t0001.o:t0001.c:(.text+0x285): undefined reference to `dbuse' ../t0001.o:t0001.c:(.text+0x2ab): undefined reference to `dbisopt' ../t0001.o:t0001.c:(.text+0x312): undefined reference to `dbcmd' ../t0001.o:t0001.c:(.text+0x31d): undefined reference to `dbsqlexec' ../t0001.o:t0001.c:(.text+0x328): undefined reference to `dbresults' ../t0001.o:t0001.c:(.text+0x375): undefined reference to `dbisopt' ../t0001.o:t0001.c:(.text+0x3fa): undefined reference to `dbcmd' ../t0001.o:t0001.c:(.text+0x405): undefined reference to `dbsqlexec' ../t0001.o:t0001.c:(.text+0x410): undefined reference to `dbresults' ../t0001.o:t0001.c:(.text+0x44c): undefined reference to `dbcmd' ../t0001.o:t0001.c:(.text+0x457): undefined reference to `dbsqlexec' ../t0001.o:t0001.c:(.text+0x467): undefined reference to `dbresults' ../t0001.o:t0001.c:(.text+0x4b6): undefined reference to `dbnumcols' ../t0001.o:t0001.c:(.text+0x4d2): undefined reference to `dbcolname' ../t0001.o:t0001.c:(.text+0x527): undefined reference to `dbbind' ../t0001.o:t0001.c:(.text+0x585): undefined reference to `dbbind' ../t0001.o:t0001.c:(.text+0x624): undefined reference to `dbnextrow' ../t0001.o:t0001.c:(.text+0x742): undefined reference to `dbnextrow' ../t0001.o:t0001.c:(.text+0x77f): undefined reference to `dbexit' collect2: ld returned 1 exit status make.exe: *** [t0001.exe] Error 1 Execution terminated [/trace] as you ca see, I tried with and without adding the '../win32/dev-cpp/libFreeTDS.a' with same results, my knowledge is quite minimal, but for sure, I'm missing a library, m i? Thanks.. P.S. would you like me to post the warning trace I got when I built the dev-cpp/FreeTDS.dev? On Mon, Mar 9, 2009 at 2:59 PM, James K. Lowden <[email protected]>wrote: > Gal Rubinstein wrote: > > > > 'cannot find -lntwdblib' did I need to build something else before > > (dblib, I presume) ? if so, what/how should I go about doing it? > > meaning, I build the FreeTDS.a/dll (with a very long trace of > > warnings), but including it didn't help the proccess. > > NTWDBLIB.DLL is Microsoft's implementation. I think you want to link to > FreeTDS, so you should drop -lntwdblib from your link command. > > > One man army :-) > > ;-) > > --jkl > > _______________________________________________ > FreeTDS mailing list > [email protected] > http://lists.ibiblio.org/mailman/listinfo/freetds >