Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » C/C++ standard headers: Unresolved inclusion(Unresolved inclusion only for SOME files! All include paths are set properly!)
C/C++ standard headers: Unresolved inclusion [message #983039] Tue, 13 November 2012 16:21 Go to next message
A. J. is currently offline A. J.Friend
Messages: 1
Registered: November 2012
Junior Member
Hello!

I am working on a CUDA makefile project in Eclipse on Linux (Ubuntu 12.04 LTS).

CUDA: 5.0
Version: Nsight Eclipse Edition v5.0.0

The project compiles (and runs) just fine, but the Eclipse editor complains about unresolved includes, e.g. "new", "string.h", "stddef.h", "limits.h"...
As you can see, those are all standard C or C++ headers.
ALL necessary include paths are properly set up for this project, in particular "/usr/include" and "/usr/inlcude/c++/4.6" are in the include directories.

The header files definately exist in these places, and they can be successfully included by SOME parts of the code.
Only four CUDA headers (in /usr/local/cuda-5.0/include) complain about missing headers (see above).
These headers are included from within other files without any problem.

What I tried so far:

  • Adding the include paths and making sure the required files exist in them.
  • Rebuilding the index.
  • Re-Searching for missing symbols.


What can I do to make the editor recognize that these headers DO exist?

Thanks for your help!
Re: C/C++ standard headers: Unresolved inclusion [message #1006361 is a reply to message #983039] Thu, 31 January 2013 04:30 Go to previous message
Adam Goodwin is currently offline Adam GoodwinFriend
Messages: 4
Registered: December 2012
Junior Member
I have this exact same problem, a solution would be good.

EDIT: It looks as though this has just resolved itself for no reason. I've added a new source file and it's doing it again with stdint.h. I guess I just have to tolerate it until Eclipse decides to acknowledge the existence of the file (rebuilding etc with the index doesn't do anything).

Not much help if waiting it out isn't working for the OP, he's been waiting a while...

[Updated on: Fri, 01 February 2013 07:57]

Report message to a moderator

Previous Topic:Eclipse says build finish but exe is not there
Next Topic:Eclipse CDT Juno: fresh install on WinXP - no C/C++ perspective
Goto Forum:
  


Current Time: Fri Apr 26 06:11:17 GMT 2024

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

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

Back to the top