Menu

Two questions about DLL

2003-01-13
2012-09-26
  • Nobody/Anonymous

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.