From: kd j. <kd...@ho...> - 2005-11-17 08:16:03
|
Hi all, I have a DLL and an import library for MSVC (Microsoft Visual C++ 6.0). I started to use MinGW recently and would like to use this DLL in my new projects. So I tried to create a new import library from the DLL. I found some information on http://www.mingw.org/MinGWiki/index.php/CreateImportLibraries, and was able to create a .def file, and an import library with dlltool These are the commands I used: pexports.exe -o X.DLL > X.def dlltool -d X.def --dllname X.DLL --output-lib libX.a When rebuilding (of course I link the created library with it) I receive the following error: undefined reference to `SomeFunction@8' Anfd tgis for each and every exproted function I use from X.DLL (the decoration @nn varies according to the number of bytes in the paraneter list) Can someone help me with this? What do I need to do, or hwo should I adapt my code to be able to access the DLL? Tx, Kd. _________________________________________________________________ Gratis bloggen op MSN Spaces http://spaces.msn.com/?mkt=nl-be |