How to link our own libararies in eclipse? [message #1786653] |
Wed, 09 May 2018 04:03 |
Siddalinga Swamy Messages: 11 Registered: November 2017 |
Junior Member |
|
|
My project is linked to libssl and libcrypto libraries in default system path,
But i want to link my project to externally built libssl and libcrypto in my own path.
In properties->settings->GCC Linker-> if i type ssl and crypto, it takes from default path.
If i give my path in Library Search Path and select "Do not use default library" then i get error because some other functions need other default libarries.
So please tell me how to disable default search paths
[Updated on: Wed, 09 May 2018 04:08] Report message to a moderator
|
|
|
|
|
Re: How to link our own libararies in eclipse? [message #1786675 is a reply to message #1786662] |
Wed, 09 May 2018 08:30 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
What makes you think so?
Are you certain the -L paths are correct?
Do they appear on the link command line in the log?
ftp://ftp.gnu.org/old-gnu/Manuals/ld-2.9.1/html_node/ld_3.html#SEC3
Quote: ...
-Lsearchdir
--library-path=searchdir
Add path searchdir to the list of paths that ld will search for archive libraries and ld control scripts. You may use this option any number of times. The directories are searched in the order in which they are specified on the command line. Directories specified on the command line are searched before the default directories.
...
If all else fails, you can also add the libraries as Other Objects in
Project --> Properties --> C/C++ Build --> Settings --> Tool Settings tab --> GCC C++Linker --> Miscellaneous
but I suspect you have the paths wrong.
[Updated on: Thu, 10 May 2018 01:59] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03374 seconds