Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » "Unresolved inclusion" errors after installing MinGW and Mysys(Eclipse runs C++, but doesn't recognize any of its libraries)
"Unresolved inclusion" errors after installing MinGW and Mysys [message #932083] Wed, 03 October 2012 20:25 Go to next message
Nico Adams is currently offline Nico Adams
Messages: 1
Registered: October 2012
Junior Member
I'm a new C++ programmer using Eclipse. Eclipse seems to recognize C++: It let me create a new C++ project and understands the syntax. However, whenever I try to #include anything, I get an "Unresolved include" error.

I have CDT installed. I also just installed MinGW and MySys and set the path variables correctly.

It looks like something's still missing from Eclipse though -- when I right click on my project and go to "properties -> C/C++ build -> Settings" all I can access are the "binary parsers" and "error parsers" tabs. The window should look like the image I attached, but I can't see the "tool settings", "build steps" or "build artifact" tabs.

That's all my research has turned up so far. What should I do next?
  • Attachment: t103e[1].jpg
    (Size: 162.20KB, Downloaded 120 times)
Re: "Unresolved inclusion" errors after installing MinGW and Mysys [message #932358 is a reply to message #932083] Thu, 04 October 2012 03:19 Go to previous message
Joost Kraaijeveld is currently offline Joost Kraaijeveld
Messages: 173
Registered: July 2009
Senior Member
On 03/10/12 22:25, Nico Adams wrote:
> I'm a new C++ programmer using Eclipse. Eclipse seems to recognize C++: It let me create a new C++ project
and understands the syntax. However, whenever I try to #include
anything, I get an "Unresolved include" error.
>
> I have CDT installed. I also just installed MinGW and MySys and set the path variables correctly.
>
> It looks like something's still missing from Eclipse though -- when I right click on my project and
go to "properties -> C/C++ build -> Settings" all I can access are the
"binary parsers" and "error parsers" tabs.
The window should look like the image I attached, but I can't see the
"tool settings", "build steps" or
"build artifact" tabs.
>
> That's all my research has turned up so far. What should I do next?
Is the unresolved error from the compiler or from Eclipse? I.e. does
your code compile and link and the resulting program run? If so, then
the problem is probably with the indexer or code analysis. If not, then
the problem is probably with the build settings or compiler installation.

If the problem is with the indexer/code analysis:
- check if the indexer is enables for you project
- reset the indexer options to default
- check if in the project properties, C/C++ General, Preprocessor
Include Paths, Macros etc. on the Entries tab the "enable language
settings providers for this project" is checked (enabled), and that on
the Providers tab the CDT GCC Builtin Compiler Settings [Shared] is
checked (enabled).
- build the project
- force a rebuild of the index by right clicking the project, index->rebuild
- you may disable all code analysis as is gives many false errors anyway


--
Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl
Previous Topic:cin/cout breaks eclipse controls of gdb (Win7,MinGW)
Next Topic:Eclipse shows unresolved inclusion but it compiles
Goto Forum:
  


Current Time: Sun Sep 21 04:05:51 GMT 2014

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

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