Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Still can't include 3rdparty library after an hour of various tutorials
Still can't include 3rdparty library after an hour of various tutorials [message #1766600] Fri, 23 June 2017 12:04 Go to next message
k k is currently offline k kFriend
Messages: 2
Registered: June 2017
Junior Member
I'm trying as hard as I can to not insult the program here, so work with me

I'm sure you get this a lot, but am I just an idiot or something? I seriously don't understand what I'm doing wrong that is causing this issue

[inserting links later]

all I wanted to do was see if I could try out a library, but apparently I'm too stupid to add them in the first place, I have no idea what I'm doing wrong, because I've followed several tutorials and all of them seemed to say the same thing, add the path to Includes and Libraries, and add the name to -l, but I'm STILL getting the "Cannot find -I[library path]" after trying tens of variations

what. am. i. doing. wrong.
Re: Still can't include 3rdparty library after an hour of various tutorials [message #1766931 is a reply to message #1766600] Wed, 28 June 2017 19:59 Go to previous message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
If you think the parameter following -l (small L) is a path then you don't understand what the option means.
See ftp://ftp.gnu.org/old-gnu/Manuals/ld-2.9.1/html_node/ld_3.html

Eclipse is an editor with capabilities to call external tools to perform a build.
It primarily expects to use GNU Make to actually execute the tools.
https://www.gnu.org/software/make/manual/

You need to understand how to build an executable using the compiler and linker then executing them via Make.
Once you understand that, then what Eclipse is doing is fairly obvious.
Explaining how the external tools work and what they expect is beyond the scope of this forum.


I suggest you look for tutorials on how to compile an link an executable from the command line and using Make.
Eclipse pretty much expects you to have this understanding.
There are a number of excellent tutorials available but only you know how much detail you need.

If you are using GCC to compile and link then you could try these
https://gcc.gnu.org/onlinedocs/
https://gcc.gnu.org/onlinedocs/gcc/
https://gcc.gnu.org/onlinedocs/gcc.pdf

http://pages.cs.wisc.edu/~beechung/ref/gcc-intro.html
https://www3.ntu.edu.sg/home/ehchua/programming/cpp/gcc_make.html

Previous Topic:Remote debug window (Remote app file path attribute)
Next Topic:IAR Linker Issue
Goto Forum:
  


Current Time: Thu Apr 25 04:10:07 GMT 2024

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

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

Back to the top