Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsLatest Eclipse
https://www.eclipse.org/forums/index.php/mv/msg/1082553/1748007/#msg_1748007
I fully understand this is user's supported forum and the lack of responses proves that.
That is not an issue.
The issue is "the latest" Ellipse download STILL not working linker -L /-l options.
For example attempt to add -l file the dialog will flash something but gives NO search option to add the file.
So my question to the forum - does anybody actually uses linker options to link to external resources?
The linker dialog titles are frozen it time - adding link file title is " Enter value" , adding include FILE ask for "add directory PATH" - it should be "adding FILE" since the path is or should be already specified via l _L option.
For the linking phase (the actual program is ld), -L is used to add a directory to the library search list. GCC expects a path -l (small L) is used for shorthand reference to files with specific naming conventions. No path specification is allowed with -l
Maybe an enhancement to Eclipse would allow you to search for a library and then strip the name to fit the convention but users generally know what libraries they need along with their names.
For includes with the compiler, -I (capital i) specifies a directory to be added to the include search path
-include can specify either a file without a path OR a file WITH either a relative or absolute path. GCC will try prepending directories in the search path if the path is not specified. Note that the documentation uses the word file for -include and the word path for -I
Understand that the tools in the tool chain are external to Eclipse. All that Eclipse does with the settings is use them to create makefile recipes that it hands off to make or the internal make emulator. If you are using the tools for plain vanilla projects you can get away with minimum understanding of how the tools work and what they expect. For anything else, Eclipse will remain a mystery unless you understand how to use the tools without Eclipse.