Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » [SOLVED] Where do INCLUDE paths come from under Ubuntu?
[SOLVED] Where do INCLUDE paths come from under Ubuntu? [message #695002] Sun, 10 July 2011 17:03 Go to next message
vincegata  is currently offline vincegata Friend
Messages: 11
Registered: July 2011
Junior Member
Hello,

My projects have this Include resource that shows the INCLUDE folders used by my project, such as /usr/include, /usr/unclude/C++/4.5, /usr/unclude/C++/4.5/backward, and some other, total seven folders.

If I go to Project Properties->C/C++ Build->GCC C++ Compiler->Includes the list is just empty. Note, I use "generate makefiles automatically".

So, where does CDT picks up correct Include folders from?

Same thing for library files.

THX!

[Updated on: Sun, 10 July 2011 23:33]

Report message to a moderator

Re: [SOLVED] Where do INCLUDE paths come from under Ubuntu? [message #695075 is a reply to message #695002] Sun, 10 July 2011 23:34 Go to previous messageGo to next message
vincegata  is currently offline vincegata Friend
Messages: 11
Registered: July 2011
Junior Member
Those paths are hard-coded in GCC compiler.

You can read the details:

http://ubuntuforums.org/showthread.php?t=1800656

[Updated on: Sun, 10 July 2011 23:40]

Report message to a moderator

Re: [SOLVED] Where do INCLUDE paths come from under Ubuntu? [message #695306 is a reply to message #695002] Mon, 11 July 2011 13:24 Go to previous messageGo to next message
Andrew Gvozdev is currently offline Andrew GvozdevFriend
Messages: 257
Registered: July 2009
Senior Member
vincegata wrote on Sun, 10 July 2011 13:03
Hello,

My projects have this Include resource that shows the INCLUDE folders used by my project, such as /usr/include, /usr/unclude/C++/4.5, /usr/unclude/C++/4.5/backward, and some other, total seven folders.

If I go to Project Properties->C/C++ Build->GCC C++ Compiler->Includes the list is just empty. Note, I use "generate makefiles automatically".

So, where does CDT picks up correct Include folders from?

Same thing for library files.

THX!


CDT uses a special mechanism called "Scanner Discovery". Basically it runs
gcc -E -P -v -dD specs.cpp
command. With those options, gcc prints its internal "specs" and CDT parses output. See C/C++ Build->Discovery Options.

Andrew
Re: [SOLVED] Where do INCLUDE paths come from under Ubuntu? [message #695407 is a reply to message #695306] Mon, 11 July 2011 17:01 Go to previous message
vincegata  is currently offline vincegata Friend
Messages: 11
Registered: July 2011
Junior Member
Thanks for clarification.
Previous Topic:Qt support? (Like Netbeans?)
Next Topic:Cannot create TestCase using CPPUnit, error happens
Goto Forum:
  


Current Time: Fri Apr 26 14:49:15 GMT 2024

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

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

Back to the top