|
From: Filip N. <xn...@vo...> - 2003-07-31 19:30:11
|
Use "gcc -mno-cygwin Demo.c NeticaEx.c netica.lib" It works for me. :) FN ----- Original Message ----- From: "Sam Steingold" <sd...@gn...> To: <min...@li...> Sent: Thursday, July 31, 2003 7:45 PM Subject: [Mingw-users] linking with libraries built with MSVS? > First of all, many thanks to everyone who answered my questions so patiently! > > I have a library <http://norsys.com/netica_c_api.htm> which includes a > .lib, .dll and .h files (no sources) and I am trying to use it with > mingw. > > it compiles fine but gives many many link errors like > > $ gcc -mno-cygwin Demo.c -lnetica -L. > /cygdrive/c/Temp/ccWKOXYb.o(.text+0x1c):Demo.c: undefined reference to `_imp__NewStreamFile_ns@12' > /cygdrive/c/Temp/ccWKOXYb.o(.text+0x3d):Demo.c: undefined reference to `_imp__HasNodeTable_bn@8' > /cygdrive/c/Temp/ccWKOXYb.o(.text+0x59):Demo.c: undefined reference to `_imp__GetNodeType_bn@4' > /cygdrive/c/Temp/ccWKOXYb.o(.text+0x91):Demo.c: undefined reference to `_imp__GetNodeType_bn@4' > /cygdrive/c/Temp/ccWKOXYb.o(.text+0xc9):Demo.c: undefined reference to `_imp__SetNodeFuncState_bn@12' > /cygdrive/c/Temp/ccWKOXYb.o(.text+0xf0):Demo.c: undefined reference to `_imp__SetNodeFuncReal_bn@16' > > msvs links it just fine. > > is there a way for me to use this library with mingw? > > thanks! > > -- > Sam Steingold (http://www.podval.org/~sds) running w2k > <http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/> > <http://www.mideasttruth.com/> <http://www.palestine-central.com/links.html> > MS: our tomorrow's software will run on your tomorrow's HW at today's speed. > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > MinGW-users mailing list > Min...@li... > > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users > |