Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Using a VC++ DLL in Eclipse?(I want to move from VC++ to Eclipse, but can't get DLL to included)
Using a VC++ DLL in Eclipse? [message #723945] Fri, 09 September 2011 20:18 Go to next message
Eclipse UserFriend
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?

Re: Using a VC++ DLL in Eclipse? [message #724345 is a reply to message #723945] Mon, 12 September 2011 02:58 Go to previous messageGo to next message
Eclipse UserFriend
This link should help you
http://www.mingw.org/wiki/MSVC_and_MinGW_DLLs

When you're successful, could you please add a section to the CDT FAQ? Thanks.
http://wiki.eclipse.org/CDT/User/FAQ#Adding_C.2FC.2B.2B_External_Libraries
(no subject) [message #724350 is a reply to message #723945] Mon, 12 September 2011 02:58 Go to previous message
Eclipse UserFriend
This link should help you
http://www.mingw.org/wiki/MSVC_and_MinGW_DLLs

When you're successful, could you please add a section to the CDT FAQ? Thanks.
http://wiki.eclipse.org/CDT/User/FAQ#Adding_C.2FC.2B.2B_External_Libraries

--
Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
Previous Topic:Can't display memory
Next Topic:Movement between cases in huge switch
Goto Forum:
  


Current Time: Wed Jul 30 14:59:08 EDT 2025

Powered by FUDForum. Page generated in 0.03755 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top