Using a VC++ DLL in Eclipse? [message #723945] |
Fri, 09 September 2011 20:18  |
Eclipse User |
|
|
|
I've been using vc++ for too long and want to move my code over to Eclipse. I have also been taking classes at my local community college which uses Eclipse. They have been unable to answer my question about this.
When using vc++ all I had to do was add a path and add a library file to link to. So for example I'd add h:\awsdk\ for my path, #include "aw.h" to my code, then add aw.lib to be linked. Done. The lib is precompiled and I do not have the source to it.
I've tried the same thing with Eclipse but am obviously doing something wrong as I get numerous errors, not the least of which is "cannot find -law.lib".
I am using MinGW GCC and a fresh install of Eclipse. I have been clicking on my project, then file>properties>C/C++ General>Paths and Symbols> then editing Library Paths, and Library.
...Update:
Is there a .lib converter? I've tried various homemade tools to create .def files so I could creat an .a file, which has allowed me to compile my programs, but something is clearly wrong because my programs crash when the DLL is called, suggesting to me that the .def files I am creating are not calculating the parameter size correctly. That's just a guess.
Any ideas/suggestions?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03602 seconds