|adding a C library to a C++ project? [message #722466]
||Mon, 05 September 2011 21:14
| John LaLuna
Registered: September 2011
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.
[Updated on: Mon, 05 September 2011 21:15]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.03230 seconds