Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » include of header files from build tools(Fatal error when compiling but paths seems correct)
include of header files from build tools [message #1833312] Thu, 08 October 2020 16:25 Go to next message
Eclipse UserFriend
Issue:
I get "fatal error: string: No such file or directory" when having #include <string> in my header file. In the project explorer I can see all the includes and the gcc_V9.2 is there and includes string in the folder.
In the source code, i can look in the Outline pane, and if I click on string in that pain it opens the correct source file from the include folders.
If I look in project->properties->settings->C++ compiler->Includes then I have added paths to the build tools include folders for good measure.
I've cleaned, refreshed, rebuilt, the index. I still get the error.

What am I doing wrong?
Re: include of header files from build tools [message #1833317 is a reply to message #1833312] Fri, 09 October 2020 01:52 Go to previous messageGo to next message
Eclipse UserFriend
project-->properties->settings -->Tool Settings tab --> C++ compiler -->Includes
is only used to tell the compiler (via the makefile) where the includes are.
In fact, the dialog for setting them is only present when CDT is creating the makefile.

You need to tell the Indexer as well.
Project --> Properties --> C/C++ General --> Preprocessor Include Paths, Macros etc.
You can only edit the User Settings entries.
The rest are provided by various scanners (providers).

The following article might help.
https://www.eclipse.org/community/eclipse_newsletter/2013/october/article4.php
Re: include of header files from build tools [message #1833321 is a reply to message #1833317] Fri, 09 October 2020 03:14 Go to previous messageGo to next message
Eclipse UserFriend
Thanks - I'll have a read
Re: include of header files from build tools [message #1833936 is a reply to message #1833317] Wed, 28 October 2020 09:03 Go to previous message
Eclipse UserFriend
Thanks helpful!!
Previous Topic:make: Interrupt/Exception caught (code = 0xc00000fd, addr = 0x4217b3)
Next Topic:How can I use <ECLIPSE DYNAMIC VARIABLE>s?
Goto Forum:
  


Current Time: Fri Jul 04 12:55:30 EDT 2025

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

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

Back to the top