Skip to main content



      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 17:37 Go to next message
Eclipse UserFriend
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 05:01 Go to previous message
Eclipse UserFriend
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
Previous Topic:Assembly Question
Next Topic:Symbol definition on GUI
Goto Forum:
  


Current Time: Wed Jul 09 08:34:05 EDT 2025

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

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

Back to the top