1) I want to build dll files by dev-cpp. Can this dll file be linked by MS Visual C++ program? The static library filename of dev-cpp is .a file, and it of MS VC++ is .lib file.
2) I have set the library path -L"C:\dev-cpp\lib" in DLLWRAP commandline, but when I give the library name (such as libgdi32.a, not include path), the compiler always report an error "libgdi32.a not found". When I copy this library file to my current directory, there is no error. Why the compiler don't search this file in the library path? For example:
HI, everybody.
I have two question about DLL:
1) I want to build dll files by dev-cpp. Can this dll file be linked by MS Visual C++ program? The static library filename of dev-cpp is .a file, and it of MS VC++ is .lib file.
2) I have set the library path -L"C:\dev-cpp\lib" in DLLWRAP commandline, but when I give the library name (such as libgdi32.a, not include path), the compiler always report an error "libgdi32.a not found". When I copy this library file to my current directory, there is no error. Why the compiler don't search this file in the library path? For example:
dllwrap.exe --output-def libMyDLL.def --implib libMyDLL.a MyDLL.o rpainter.o rmath.o -L"C:/Dev-Cpp/lib" --no-export-all-symbols --add-stdcall-alias libgdi32.a -o MyDLL.dll
dlltool: Unable to open object file: libgdi32.a
there are some pointers:
http://www.mingw.org/mingwfaq.shtml#faq-msvcdll
http://jrfonseca.dyndns.org/projects/gnu-win32/software/reimp/index.html
your on the right track...
Patrick
Thank you very much