Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse can not find library even though it exists.(Eclipse can not find library even though it exists.)
Eclipse can not find library even though it exists. [message #747010] Sun, 23 October 2011 21:37 Go to next message
sepich.eric is currently offline sepich.ericFriend
Messages: 2
Registered: October 2011
Junior Member
This is my error:

Description Resource Path Location Type
cannot find -l/usr/lib/x86_64-linux-gnu/libusb-1.0.so lsusb C/C++ Problem

I have verified that the library does indeed exist at that specific location. Further the command:

g++ lsusb.c -o lsusb -L/usr/lib/x86_64-linux-gnu/ -lusb-1.0

works perfectly fine! What needs to be done with the Eclipse environment?

Thank You! Smile
Re: Eclipse can not find library even though it exists. [message #749505 is a reply to message #747010] Tue, 25 October 2011 09:01 Go to previous message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
Quote:
-l/usr/lib/x86_64-linux-gnu/libusb-1.0.so

This will not work. The option "-L" specifies the library search path and "-l" specifies the library. You have to omit the prefix "lib" and the suffix ".so" (see your own command).

http://wiki.eclipse.org/CDT/User/FAQ#How_do_I_add_an_external_library_to_my_C.2B.2B_project.3F


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:Assembly Question
Next Topic:Symbol definition on GUI
Goto Forum:
  


Current Time: Tue Sep 24 15:46:29 GMT 2024

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

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

Back to the top