From: jipsu h <jipsuh@ho...> - 2001-04-19 12:43:00
I wanted to make an import library from glide3x.dll, since Glide SDK doesn't
I did it like this:
impdef glide3x.dll > glide3x.def
dlltool --dllname glide3x.dll --def glide3x.def --output-lib libglide.a
Everything went fine this far, but when I tried to link with this libglide.a
(gcc -o test.exe test.c -lglide -mwindows), I got errors about undefined
references to all Glide functions I used:
undefined reference to `grGlideInit@...'
undefined reference to `grSstSelect@...'
undefined reference to `grSstWinOpen@...'
undefined reference to `grGlideShutdown@...' etc....
Glide SDK seems to use __stdcall convention and the exported functions look
like this in the def-file: _grSstWinOpen@...
i.e. the names are mangled.
Have I made a mistake or what is going on? How do I make an import library
from glide3x.dll (or any other DLL)?
Thanks for any answers
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Get latest updates about Open Source Projects, Conferences and News.