HELP! how to reference an external dll with cygwin gcc
Von: dao (dao.hodac@gmail.com) [Profil]
Datum: 06.02.2008 17:29
Message-ID: <832de6e1-39cc-4ca2-a82c-7939107c80e2@c23g2000hsa.googlegroups.com>
Newsgroup: de.alt.comp.cygwin+co
Datum: 06.02.2008 17:29
Message-ID: <832de6e1-39cc-4ca2-a82c-7939107c80e2@c23g2000hsa.googlegroups.com>
Newsgroup: de.alt.comp.cygwin+co
hello, I'd like to compile a c++ program using cygwin (via eclipse CDT) and this program uses an external dll. I have seen that since cygwin contains the unix gcc, it is able to link with *.so libs. So, this is my question: Can I link my c++ program with this dll? I do not have a so library. for the moment this is my link command: g++ -L"//fr0-pen01/adage/test.win32/lib" -o"TestDLL.exe" ./src/ TestDLL.o -lgti_logger considering I have a dll file : //fr0-pen01/adage/test.win32/lib/ gti_logger.dll And I get an error: /cygdrive/c/Home/TO81028/workspaceCpp/TestDLL/Debug/../src/ TestDLL.cpp:16: undefined reference to `_gti_getStream' collect2: ld returned 1 exit status make: *** [TestDLL.exe] Error 1[ Auf dieses Posting antworten ]
