From: SourceForge.net <no...@so...> - 2005-04-05 13:40:59
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=3084249 By: figuinho Hi, I use a simulation software which needs dll files to modell a component: I wrote a C file, which is compiled with gcc. Then dllwrap builds a dll from the .o file. It works fine. When I want to use a function, I provide the include file with its prototype. There is no error when compiling. But I don't know how to tell dllwrap (or ld?) to check the .lib file including this function! I already tried options like -L or -l like in unix style but it didn't work. Somebody can help me? The makefile is below SET CC="C:\Program Files\MinGW\bin\gcc.exe" -w -DBUILDING_DLL=1 SET INCDIRS=-I"." -I"D:\alex\nsp" -I"C:\ProgramFiles\bla\bla\include" SET LD="C:\ProgramFiles\MinGW\bin\ld.exe" %CC% -c %INCDIRS% coslib.c "C:\Program Files\MinGW\bin\dllwrap" -o coslib.dll coslib.o --no-export-all-symbols --add-stdcall-alias the error message is D:\alex\test>"C:\Program Files\MinGW\bin\dllwrap" -o coslib.dll coslib.o --no-export-all-symbols --add-stdcall-alias C:\Program Files\MinGW\bin\dllwrap: no export definition file provided. Creating one, but that may not be what you want coslib.o(.text+0x7fe):coslib.c: undefined reference to `nspzFft@12' C:\Program Files\MinGW\bin\dllwrap: C:\Program Files\MinGW\bin\gcc exited with status 1 Thank you for your help Alex ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=286529 |