Re: [Dev-C++] Using DLL created with Dev-Cpp
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: David M. <dml...@co...> - 2004-10-02 20:12:13
|
The problem is with the .a file. Visual C++ uses a .lib file which has a different format than the .a file used in Mingw/Dev-C++. Essentially you need to find a utility to preform this conversion. I know implib (or something similar) will do the conversion the other way around but I do not know of a utility to do from .a to .lib. You could also try compiling the DLL under Visual C++ and let it produce it's own .lib from which you can get a .a for use with Dev-C++. Sadly this is not something I have ever done in Visual C++ so you are on your own there. Dmitry Sidorov wrote: >Hello, > >I created some DLL using Dev-Cpp >Now I need to use it implicitly in some VisualC++ project >I added a header file to this project, specify a path to .a file to >linker and put dll in the output directory >Bu I cannot link it :( >I get LNK2001 unresolved symbol errors >On the other hand I could use this dll implicitly in projects written >in Dev-Cpp > >Maybe some format error? Does anybody know? > >Dmitry > |