From: Martin B. <mai...@we...> - 2006-02-16 18:40:07
|
Problem is solved... Thanks for your ideas. There was an other version of a samecalled dll file in an library directory. This file was used first and was responsible for the linking errors. M.B. Martin Baumann schrieb: >Hi, > >I am compiling a shared library for windows (*.dll). This dll contains symbols with a leading '_', examble: _myfunction. >With the same version of mingw I compile a project that includes the headers of this library and is linked to the dll file. Obviously the linker is looking for functions WITHOUT leading '_': > >error: ... undefined reference to myfunction > >How can that be. I thought if the shared lib and the program that uses the lib are compiled and linked by exactly the same tools there shouldn't be any problems... > >What can I do? > >I searched the mailing list archive and found some instructions of creating and import library. I did so but the problem was still the same: in the *.a file the symbols had leading '_'! >Although I cannont imagine that I must use a import library if I have the source code of the library! > >Regards, M.B. >______________________________________________________________ >Verschicken Sie romantische, coole und witzige Bilder per SMS! >Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 > > > >------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >for problems? Stop! Download the new AJAX search engine that makes >searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 >_______________________________________________ >MinGW-users mailing list >Min...@li... > >You may change your MinGW Account Options or unsubscribe at: >https://lists.sourceforge.net/lists/listinfo/mingw-users > > > |