Hello,
I've been trying to create an import library for a DLL created with MSVC. I've had little succes...
I've tried some of the solutions found on http://www.mingw.org/mingwfaq.shtml#faq-msvcdll, but none of them have produced a file that Dev-C++ will link with.
The library in question is: http://www.activeworlds.com/sdk
This is the complete log of when I attempt to compile. Note that I do have the import library correctly listed under "Project Options" -> "Parameters" -> "Linker".
==================================================================================
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Projects\AWBot\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Projects\AWBot\Makefile.win" all
gcc.exe -c main.c -o main.o -I"C:/Dev-Cpp/include"
gcc.exe main.o -o "awbot.exe" -L"C:/Dev-Cpp/lib" ../../lib/aw31.a
main.o(.text+0x18d):main.c: undefined reference to `_imp__aw_init'
main.o(.text+0x1c7):main.c: undefined reference to `_imp__aw_event_set'
main.o(.text+0x1da):main.c: undefined reference to `_imp__aw_create'
main.o(.text+0x223):main.c: undefined reference to `_imp__aw_int_set'
main.o(.text+0x23a):main.c: undefined reference to `_imp__aw_string_set'
main.o(.text+0x24e):main.c: undefined reference to `_imp__aw_string_set'
main.o(.text+0x262):main.c: undefined reference to `_imp__aw_string_set'
main.o(.text+0x26c):main.c: undefined reference to `_imp__aw_login'
main.o(.text+0x2a1):main.c: undefined reference to `_imp__aw_enter'
main.o(.text+0x2de):main.c: undefined reference to `_imp__aw_int_set'
main.o(.text+0x2f5):main.c: undefined reference to `_imp__aw_int_set'
main.o(.text+0x30c):main.c: undefined reference to `_imp__aw_int_set'
main.o(.text+0x316):main.c: undefined reference to `_imp__aw_state_change'
main.o(.text+0x349):main.c: undefined reference to `_imp__aw_wait'
main.o(.text+0x357):main.c: undefined reference to `_imp__aw_destroy'
main.o(.text+0x35e):main.c: undefined reference to `_imp__aw_term'
main.o(.text+0x396):main.c: undefined reference to `_imp__aw_string'
main.o(.text+0x3b9):main.c: undefined reference to `_imp__aw_say'
main.o(.text+0x3ce):main.c: undefined reference to `_imp__aw_string'
make.exe: *** [awbot.exe] Error 1
Execution terminated
==================================================================================
This is with Dev-C++ 4.9.8.0.
|