|
From: Sam S. <sd...@gn...> - 2003-07-31 17:53:41
|
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. |
|
From: Earnie B. <ear...@ya...> - 2003-07-31 18:13:28
|
Sam Steingold wrote: > 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. What happens if you gcc -mno-cygwin Demo.c -L. -lnetica OR gcc -mno-cygwin Demo.c netica.dll Earnie |
|
From: Sam S. <sd...@gn...> - 2003-07-31 18:49:05
|
> * In message <3F2...@ya...> > * On the subject of "Re: linking with libraries built with MSVS?" > * Sent on Thu, 31 Jul 2003 14:12:54 -0400 > * Honorable Earnie Boyd <ear...@ya...> writes: > > Sam Steingold wrote: > > 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. > > What happens if you > > gcc -mno-cygwin Demo.c -L. -lnetica /cygdrive/c/Temp/cccaEpKH.o(.text+0x1c):Demo.c: undefined reference to `_imp__NewStreamFile_ns@12' /cygdrive/c/Temp/cccaEpKH.o(.text+0x3d):Demo.c: undefined reference to `_imp__HasNodeTable_bn@8' /cygdrive/c/Temp/cccaEpKH.o(.text+0x59):Demo.c: undefined reference to `_imp__GetNodeType_bn@4' /cygdrive/c/Temp/cccaEpKH.o(.text+0x91):Demo.c: undefined reference to `_imp__GetNodeType_bn@4' /cygdrive/c/Temp/cccaEpKH.o(.text+0xc9):Demo.c: undefined reference to `_imp__SetNodeFuncState_bn@12' /cygdrive/c/Temp/cccaEpKH.o(.text+0xf0):Demo.c: undefined reference to `_imp__SetNodeFuncReal_bn@16' /cygdrive/c/Temp/cccaEpKH.o(.text+0x109):Demo.c: undefined reference to `_imp__GetNodeType_bn@4' /cygdrive/c/Temp/cccaEpKH.o(.text+0x125):Demo.c: undefined reference to `_imp__GetNodeFuncState_bn@8' /cygdrive/c/Temp/cccaEpKH.o(.text+0x149):Demo.c: undefined reference to `_imp__GetNodeFuncReal_bn@8' /cygdrive/c/Temp/cccaEpKH.o(.text+0x177):Demo.c: undefined reference to `_imp__NewNeticaEnviron_ns@12' /cygdrive/c/Temp/cccaEpKH.o(.text+0x1a4):Demo.c: undefined reference to `_imp__GetNodeVisPosition_bn@16' /cygdrive/c/Temp/cccaEpKH.o(.text+0x6c1):Demo.c: undefined reference to `_imp__NewNeticaEnviron_ns@12' /cygdrive/c/Temp/cccaEpKH.o(.text+0x6cb):Demo.c: undefined reference to `env' /cygdrive/c/Temp/cccaEpKH.o(.text+0x6d2):Demo.c: undefined reference to `env' /cygdrive/c/Temp/cccaEpKH.o(.text+0x6e1):Demo.c: undefined reference to `_imp__InitNetica_bn@8' /cygdrive/c/Temp/cccaEpKH.o(.text+0x726):Demo.c: undefined reference to `env' /cygdrive/c/Temp/cccaEpKH.o(.text+0x72f):Demo.c: undefined reference to `_imp__NewNet_bn@8' /cygdrive/c/Temp/cccaEpKH.o(.text+0x73c):Demo.c: undefined reference to `env' /cygdrive/c/Temp/cccaEpKH.o(.text+0x754):Demo.c: undefined reference to `_imp__GetError_ns@12' /cygdrive/c/Temp/cccaEpKH.o(.text+0x77d):Demo.c: undefined reference to `_imp__NewNode_bn@12' /cygdrive/c/Temp/cccaEpKH.o(.text+0x7a0):Demo.c: undefined reference to `_imp__NewNode_bn@12' /cygdrive/c/Temp/cccaEpKH.o(.text+0x7c3):Demo.c: undefined reference to `_imp__NewNode_bn@12' /cygdrive/c/Temp/cccaEpKH.o(.text+0x7e6):Demo.c: undefined reference to `_imp__NewNode_bn@12' /cygdrive/c/Temp/cccaEpKH.o(.text+0x809):Demo.c: undefined reference to `_imp__NewNode_bn@12' /cygdrive/c/Temp/cccaEpKH.o(.text+0x82c):Demo.c: more undefined references to `_imp__NewNode_bn@12' follow /cygdrive/c/Temp/cccaEpKH.o(.text+0x839):Demo.c: undefined reference to `env' /cygdrive/c/Temp/cccaEpKH.o(.text+0x851):Demo.c: undefined reference to `_imp__GetError_ns@12' /cygdrive/c/Temp/cccaEpKH.o(.text+0x872):Demo.c: undefined reference to `_imp__SetNodeStateNames_bn@8' /cygdrive/c/Temp/cccaEpKH.o(.text+0x88a):Demo.c: undefined reference to `_imp__SetNodeStateNames_bn@8' /cygdrive/c/Temp/cccaEpKH.o(.text+0x8a2):Demo.c: undefined reference to `_imp__SetNodeStateNames_bn@8' /cygdrive/c/Temp/cccaEpKH.o(.text+0x8ba):Demo.c: undefined reference to `_imp__SetNodeStateNames_bn@8' /cygdrive/c/Temp/cccaEpKH.o(.text+0x8d2):Demo.c: undefined reference to `_imp__SetNodeStateNames_bn@8' /cygdrive/c/Temp/cccaEpKH.o(.text+0x8ea):Demo.c: more undefined references to `_imp__SetNodeStateNames_bn@8' follow /cygdrive/c/Temp/cccaEpKH.o(.text+0x902):Demo.c: undefined reference to `_imp__SetNodeTitle_bn@8' /cygdrive/c/Temp/cccaEpKH.o(.text+0x91a):Demo.c: undefined reference to `_imp__SetNodeTitle_bn@8' /cygdrive/c/Temp/cccaEpKH.o(.text+0x924):Demo.c: undefined reference to `env' /cygdrive/c/Temp/cccaEpKH.o(.text+0x93c):Demo.c: undefined reference to `_imp__GetError_ns@12' /cygdrive/c/Temp/cccaEpKH.o(.text+0x95c):Demo.c: undefined reference to `_imp__AddLink_bn@8' /cygdrive/c/Temp/cccaEpKH.o(.text+0x973):Demo.c: undefined reference to `_imp__AddLink_bn@8' /cygdrive/c/Temp/cccaEpKH.o(.text+0x98a):Demo.c: undefined reference to `_imp__AddLink_bn@8' /cygdrive/c/Temp/cccaEpKH.o(.text+0x9a1):Demo.c: undefined reference to `_imp__AddLink_bn@8' /cygdrive/c/Temp/cccaEpKH.o(.text+0x9b8):Demo.c: undefined reference to `_imp__AddLink_bn@8' /cygdrive/c/Temp/cccaEpKH.o(.text+0x9c2):Demo.c: undefined reference to `env' /cygdrive/c/Temp/cccaEpKH.o(.text+0x9da):Demo.c: undefined reference to `_imp__GetError_ns@12' /cygdrive/c/Temp/cccaEpKH.o(.text+0xa13):Demo.c: undefined reference to `SetNodeProbs' /cygdrive/c/Temp/cccaEpKH.o(.text+0xa46):Demo.c: undefined reference to `SetNodeProbs' /cygdrive/c/Temp/cccaEpKH.o(.text+0xa79):Demo.c: undefined reference to `SetNodeProbs' /cygdrive/c/Temp/cccaEpKH.o(.text+0xaa4):Demo.c: undefined reference to `SetNodeProbs' /cygdrive/c/Temp/cccaEpKH.o(.text+0xad7):Demo.c: undefined reference to `SetNodeProbs' /cygdrive/c/Temp/cccaEpKH.o(.text+0xb0a):Demo.c: more undefined references to `SetNodeProbs' follow /cygdrive/c/Temp/cccaEpKH.o(.text+0xc61):Demo.c: undefined reference to `env' /cygdrive/c/Temp/cccaEpKH.o(.text+0xc79):Demo.c: undefined reference to `_imp__GetError_ns@12' /cygdrive/c/Temp/cccaEpKH.o(.text+0xc92):Demo.c: undefined reference to `_imp__CompileNet_bn@4' /cygdrive/c/Temp/cccaEpKH.o(.text+0xc9c):Demo.c: undefined reference to `env' /cygdrive/c/Temp/cccaEpKH.o(.text+0xcb4):Demo.c: undefined reference to `_imp__GetError_ns@12' /cygdrive/c/Temp/cccaEpKH.o(.text+0xcdd):Demo.c: undefined reference to `GetNodeBelief' /cygdrive/c/Temp/cccaEpKH.o(.text+0xce5):Demo.c: undefined reference to `env' /cygdrive/c/Temp/cccaEpKH.o(.text+0xcfd):Demo.c: undefined reference to `_imp__GetError_ns@12' /cygdrive/c/Temp/cccaEpKH.o(.text+0xd40):Demo.c: undefined reference to `EnterFinding' /cygdrive/c/Temp/cccaEpKH.o(.text+0xd5b):Demo.c: undefined reference to `GetNodeBelief' /cygdrive/c/Temp/cccaEpKH.o(.text+0xd63):Demo.c: undefined reference to `env' /cygdrive/c/Temp/cccaEpKH.o(.text+0xd7b):Demo.c: undefined reference to `_imp__GetError_ns@12' /cygdrive/c/Temp/cccaEpKH.o(.text+0xdbe):Demo.c: undefined reference to `EnterFinding' /cygdrive/c/Temp/cccaEpKH.o(.text+0xdd9):Demo.c: undefined reference to `GetNodeBelief' /cygdrive/c/Temp/cccaEpKH.o(.text+0xde1):Demo.c: undefined reference to `env' /cygdrive/c/Temp/cccaEpKH.o(.text+0xdf9):Demo.c: undefined reference to `_imp__GetError_ns@12' /cygdrive/c/Temp/cccaEpKH.o(.text+0xe3c):Demo.c: undefined reference to `EnterFinding' /cygdrive/c/Temp/cccaEpKH.o(.text+0xe57):Demo.c: undefined reference to `GetNodeBelief' /cygdrive/c/Temp/cccaEpKH.o(.text+0xe5f):Demo.c: undefined reference to `env' /cygdrive/c/Temp/cccaEpKH.o(.text+0xe77):Demo.c: undefined reference to `_imp__GetError_ns@12' /cygdrive/c/Temp/cccaEpKH.o(.text+0xeaa):Demo.c: undefined reference to `_imp__DeleteNet_bn@4' /cygdrive/c/Temp/cccaEpKH.o(.text+0xeb4):Demo.c: undefined reference to `env' /cygdrive/c/Temp/cccaEpKH.o(.text+0xec6):Demo.c: undefined reference to `_imp__CloseNetica_bn@8' /cygdrive/c/Temp/cccaEpKH.o(.text+0xf34):Demo.c: undefined reference to `env' /cygdrive/c/Temp/cccaEpKH.o(.text+0xf4c):Demo.c: undefined reference to `_imp__GetError_ns@12' /cygdrive/c/Temp/cccaEpKH.o(.text+0xf59):Demo.c: undefined reference to `_imp__ErrorMessage_ns@4' > gcc -mno-cygwin Demo.c netica.dll /cygdrive/c/Temp/ccqi515z.o(.text+0x1c):Demo.c: undefined reference to `_imp__NewStreamFile_ns@12' /cygdrive/c/Temp/ccqi515z.o(.text+0x3d):Demo.c: undefined reference to `_imp__HasNodeTable_bn@8' /cygdrive/c/Temp/ccqi515z.o(.text+0x59):Demo.c: undefined reference to `_imp__GetNodeType_bn@4' /cygdrive/c/Temp/ccqi515z.o(.text+0x91):Demo.c: undefined reference to `_imp__GetNodeType_bn@4' /cygdrive/c/Temp/ccqi515z.o(.text+0xc9):Demo.c: undefined reference to `_imp__SetNodeFuncState_bn@12' /cygdrive/c/Temp/ccqi515z.o(.text+0xf0):Demo.c: undefined reference to `_imp__SetNodeFuncReal_bn@16' /cygdrive/c/Temp/ccqi515z.o(.text+0x109):Demo.c: undefined reference to `_imp__GetNodeType_bn@4' /cygdrive/c/Temp/ccqi515z.o(.text+0x125):Demo.c: undefined reference to `_imp__GetNodeFuncState_bn@8' /cygdrive/c/Temp/ccqi515z.o(.text+0x149):Demo.c: undefined reference to `_imp__GetNodeFuncReal_bn@8' /cygdrive/c/Temp/ccqi515z.o(.text+0x177):Demo.c: undefined reference to `_imp__NewNeticaEnviron_ns@12' /cygdrive/c/Temp/ccqi515z.o(.text+0x1a4):Demo.c: undefined reference to `_imp__GetNodeVisPosition_bn@16' /cygdrive/c/Temp/ccqi515z.o(.text+0x6c1):Demo.c: undefined reference to `_imp__NewNeticaEnviron_ns@12' /cygdrive/c/Temp/ccqi515z.o(.text+0x6cb):Demo.c: undefined reference to `env' /cygdrive/c/Temp/ccqi515z.o(.text+0x6d2):Demo.c: undefined reference to `env' /cygdrive/c/Temp/ccqi515z.o(.text+0x6e1):Demo.c: undefined reference to `_imp__InitNetica_bn@8' /cygdrive/c/Temp/ccqi515z.o(.text+0x726):Demo.c: undefined reference to `env' /cygdrive/c/Temp/ccqi515z.o(.text+0x72f):Demo.c: undefined reference to `_imp__NewNet_bn@8' /cygdrive/c/Temp/ccqi515z.o(.text+0x73c):Demo.c: undefined reference to `env' /cygdrive/c/Temp/ccqi515z.o(.text+0x754):Demo.c: undefined reference to `_imp__GetError_ns@12' /cygdrive/c/Temp/ccqi515z.o(.text+0x77d):Demo.c: undefined reference to `_imp__NewNode_bn@12' /cygdrive/c/Temp/ccqi515z.o(.text+0x7a0):Demo.c: undefined reference to `_imp__NewNode_bn@12' /cygdrive/c/Temp/ccqi515z.o(.text+0x7c3):Demo.c: undefined reference to `_imp__NewNode_bn@12' /cygdrive/c/Temp/ccqi515z.o(.text+0x7e6):Demo.c: undefined reference to `_imp__NewNode_bn@12' /cygdrive/c/Temp/ccqi515z.o(.text+0x809):Demo.c: undefined reference to `_imp__NewNode_bn@12' /cygdrive/c/Temp/ccqi515z.o(.text+0x82c):Demo.c: more undefined references to `_imp__NewNode_bn@12' follow /cygdrive/c/Temp/ccqi515z.o(.text+0x839):Demo.c: undefined reference to `env' /cygdrive/c/Temp/ccqi515z.o(.text+0x851):Demo.c: undefined reference to `_imp__GetError_ns@12' /cygdrive/c/Temp/ccqi515z.o(.text+0x872):Demo.c: undefined reference to `_imp__SetNodeStateNames_bn@8' /cygdrive/c/Temp/ccqi515z.o(.text+0x88a):Demo.c: undefined reference to `_imp__SetNodeStateNames_bn@8' /cygdrive/c/Temp/ccqi515z.o(.text+0x8a2):Demo.c: undefined reference to `_imp__SetNodeStateNames_bn@8' /cygdrive/c/Temp/ccqi515z.o(.text+0x8ba):Demo.c: undefined reference to `_imp__SetNodeStateNames_bn@8' /cygdrive/c/Temp/ccqi515z.o(.text+0x8d2):Demo.c: undefined reference to `_imp__SetNodeStateNames_bn@8' /cygdrive/c/Temp/ccqi515z.o(.text+0x8ea):Demo.c: more undefined references to `_imp__SetNodeStateNames_bn@8' follow /cygdrive/c/Temp/ccqi515z.o(.text+0x902):Demo.c: undefined reference to `_imp__SetNodeTitle_bn@8' /cygdrive/c/Temp/ccqi515z.o(.text+0x91a):Demo.c: undefined reference to `_imp__SetNodeTitle_bn@8' /cygdrive/c/Temp/ccqi515z.o(.text+0x924):Demo.c: undefined reference to `env' /cygdrive/c/Temp/ccqi515z.o(.text+0x93c):Demo.c: undefined reference to `_imp__GetError_ns@12' /cygdrive/c/Temp/ccqi515z.o(.text+0x95c):Demo.c: undefined reference to `_imp__AddLink_bn@8' /cygdrive/c/Temp/ccqi515z.o(.text+0x973):Demo.c: undefined reference to `_imp__AddLink_bn@8' /cygdrive/c/Temp/ccqi515z.o(.text+0x98a):Demo.c: undefined reference to `_imp__AddLink_bn@8' /cygdrive/c/Temp/ccqi515z.o(.text+0x9a1):Demo.c: undefined reference to `_imp__AddLink_bn@8' /cygdrive/c/Temp/ccqi515z.o(.text+0x9b8):Demo.c: undefined reference to `_imp__AddLink_bn@8' /cygdrive/c/Temp/ccqi515z.o(.text+0x9c2):Demo.c: undefined reference to `env' /cygdrive/c/Temp/ccqi515z.o(.text+0x9da):Demo.c: undefined reference to `_imp__GetError_ns@12' /cygdrive/c/Temp/ccqi515z.o(.text+0xa13):Demo.c: undefined reference to `SetNodeProbs' /cygdrive/c/Temp/ccqi515z.o(.text+0xa46):Demo.c: undefined reference to `SetNodeProbs' /cygdrive/c/Temp/ccqi515z.o(.text+0xa79):Demo.c: undefined reference to `SetNodeProbs' /cygdrive/c/Temp/ccqi515z.o(.text+0xaa4):Demo.c: undefined reference to `SetNodeProbs' /cygdrive/c/Temp/ccqi515z.o(.text+0xad7):Demo.c: undefined reference to `SetNodeProbs' /cygdrive/c/Temp/ccqi515z.o(.text+0xb0a):Demo.c: more undefined references to `SetNodeProbs' follow /cygdrive/c/Temp/ccqi515z.o(.text+0xc61):Demo.c: undefined reference to `env' /cygdrive/c/Temp/ccqi515z.o(.text+0xc79):Demo.c: undefined reference to `_imp__GetError_ns@12' /cygdrive/c/Temp/ccqi515z.o(.text+0xc92):Demo.c: undefined reference to `_imp__CompileNet_bn@4' /cygdrive/c/Temp/ccqi515z.o(.text+0xc9c):Demo.c: undefined reference to `env' /cygdrive/c/Temp/ccqi515z.o(.text+0xcb4):Demo.c: undefined reference to `_imp__GetError_ns@12' /cygdrive/c/Temp/ccqi515z.o(.text+0xcdd):Demo.c: undefined reference to `GetNodeBelief' /cygdrive/c/Temp/ccqi515z.o(.text+0xce5):Demo.c: undefined reference to `env' /cygdrive/c/Temp/ccqi515z.o(.text+0xcfd):Demo.c: undefined reference to `_imp__GetError_ns@12' /cygdrive/c/Temp/ccqi515z.o(.text+0xd40):Demo.c: undefined reference to `EnterFinding' /cygdrive/c/Temp/ccqi515z.o(.text+0xd5b):Demo.c: undefined reference to `GetNodeBelief' /cygdrive/c/Temp/ccqi515z.o(.text+0xd63):Demo.c: undefined reference to `env' /cygdrive/c/Temp/ccqi515z.o(.text+0xd7b):Demo.c: undefined reference to `_imp__GetError_ns@12' /cygdrive/c/Temp/ccqi515z.o(.text+0xdbe):Demo.c: undefined reference to `EnterFinding' /cygdrive/c/Temp/ccqi515z.o(.text+0xdd9):Demo.c: undefined reference to `GetNodeBelief' /cygdrive/c/Temp/ccqi515z.o(.text+0xde1):Demo.c: undefined reference to `env' /cygdrive/c/Temp/ccqi515z.o(.text+0xdf9):Demo.c: undefined reference to `_imp__GetError_ns@12' /cygdrive/c/Temp/ccqi515z.o(.text+0xe3c):Demo.c: undefined reference to `EnterFinding' /cygdrive/c/Temp/ccqi515z.o(.text+0xe57):Demo.c: undefined reference to `GetNodeBelief' /cygdrive/c/Temp/ccqi515z.o(.text+0xe5f):Demo.c: undefined reference to `env' /cygdrive/c/Temp/ccqi515z.o(.text+0xe77):Demo.c: undefined reference to `_imp__GetError_ns@12' /cygdrive/c/Temp/ccqi515z.o(.text+0xeaa):Demo.c: undefined reference to `_imp__DeleteNet_bn@4' /cygdrive/c/Temp/ccqi515z.o(.text+0xeb4):Demo.c: undefined reference to `env' /cygdrive/c/Temp/ccqi515z.o(.text+0xec6):Demo.c: undefined reference to `_imp__CloseNetica_bn@8' /cygdrive/c/Temp/ccqi515z.o(.text+0xf34):Demo.c: undefined reference to `env' /cygdrive/c/Temp/ccqi515z.o(.text+0xf4c):Demo.c: undefined reference to `_imp__GetError_ns@12' /cygdrive/c/Temp/ccqi515z.o(.text+0xf59):Demo.c: undefined reference to `_imp__ErrorMessage_ns@4' > gcc -mno-cygwin Demo.c netica.lib /cygdrive/c/Temp/ccO55HY1.o(.text+0x6cb):Demo.c: undefined reference to `env' /cygdrive/c/Temp/ccO55HY1.o(.text+0x6d2):Demo.c: undefined reference to `env' /cygdrive/c/Temp/ccO55HY1.o(.text+0x726):Demo.c: undefined reference to `env' /cygdrive/c/Temp/ccO55HY1.o(.text+0x73c):Demo.c: undefined reference to `env' /cygdrive/c/Temp/ccO55HY1.o(.text+0x839):Demo.c: undefined reference to `env' /cygdrive/c/Temp/ccO55HY1.o(.text+0x924):Demo.c: more undefined references to `env' follow /cygdrive/c/Temp/ccO55HY1.o(.text+0xa13):Demo.c: undefined reference to `SetNodeProbs' /cygdrive/c/Temp/ccO55HY1.o(.text+0xa46):Demo.c: undefined reference to `SetNodeProbs' /cygdrive/c/Temp/ccO55HY1.o(.text+0xa79):Demo.c: undefined reference to `SetNodeProbs' /cygdrive/c/Temp/ccO55HY1.o(.text+0xaa4):Demo.c: undefined reference to `SetNodeProbs' /cygdrive/c/Temp/ccO55HY1.o(.text+0xad7):Demo.c: undefined reference to `SetNodeProbs' /cygdrive/c/Temp/ccO55HY1.o(.text+0xb0a):Demo.c: more undefined references to `SetNodeProbs' follow /cygdrive/c/Temp/ccO55HY1.o(.text+0xc61):Demo.c: undefined reference to `env' /cygdrive/c/Temp/ccO55HY1.o(.text+0xc9c):Demo.c: undefined reference to `env' /cygdrive/c/Temp/ccO55HY1.o(.text+0xcdd):Demo.c: undefined reference to `GetNodeBelief' /cygdrive/c/Temp/ccO55HY1.o(.text+0xce5):Demo.c: undefined reference to `env' /cygdrive/c/Temp/ccO55HY1.o(.text+0xd40):Demo.c: undefined reference to `EnterFinding' /cygdrive/c/Temp/ccO55HY1.o(.text+0xd5b):Demo.c: undefined reference to `GetNodeBelief' /cygdrive/c/Temp/ccO55HY1.o(.text+0xd63):Demo.c: undefined reference to `env' /cygdrive/c/Temp/ccO55HY1.o(.text+0xdbe):Demo.c: undefined reference to `EnterFinding' /cygdrive/c/Temp/ccO55HY1.o(.text+0xdd9):Demo.c: undefined reference to `GetNodeBelief' /cygdrive/c/Temp/ccO55HY1.o(.text+0xde1):Demo.c: undefined reference to `env' /cygdrive/c/Temp/ccO55HY1.o(.text+0xe3c):Demo.c: undefined reference to `EnterFinding' /cygdrive/c/Temp/ccO55HY1.o(.text+0xe57):Demo.c: undefined reference to `GetNodeBelief' /cygdrive/c/Temp/ccO55HY1.o(.text+0xe5f):Demo.c: undefined reference to `env' /cygdrive/c/Temp/ccO55HY1.o(.text+0xeb4):Demo.c: undefined reference to `env' /cygdrive/c/Temp/ccO55HY1.o(.text+0xf34):Demo.c: undefined reference to `env' -- 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> The paperless office will become a reality soon after the paperless toilet. |
|
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 > |