Eclipse 3.7 cannot resolve Types in C++ Editor -


I have recently changed from Eclipse 3.6 to Eclipse 3.7, which I use for C ++ development in Ubuntu 11.04 I am doing

I did not have any major problems with version 3.6, except that I had always had some problems with the index. Now it starts figuring out as unsolved type with version 3.7. Since the indexers dislike me more, therefore my eclipse apparently does not contain type information like uint16_t or size_t .

In the code editor, unlike the displayed errors, my compiler has no problem in compiling code and solving all the symbols and types, so this is the problem of IDE

There are ways to avoid this behavior, because not all red graphs make my code more readable ...?

Update: project properties / C / C ++ normal / path and symbol < / Code>

There is a need to add some paths, because I'm building for PowerPC instead of the I32 target, I just do not have to go to / usr / include Instead of all standard titles (like for

/ usr / powerpc-linux-gnu / libc / usr / include ). Also I need to: for stdarg

/usr/lib/gcc/powerpc-linux-gnu/4.5.1/include < P> h .

Now almost all errors have gone, only the function that bothers me printf from header to stdio.h . I looked at it and the header file is within the included path. Still, I get an error that says can not resolve the printf function . I want to note again that these are errors that only display errors - the compilation itself works fine.

Then it actually throws 3 questions:

  1. Project properties include the path and symbol section in which C ++ Build / Settings / C ++ included section. This means that adding / removing paths in any one of those sections directly affects the entry of others, since is included in C ++ contacts directly with the compiler I am surprised that the compiler Why can I compile it correctly (and get the header) even though they do not reach it as a path? Does any standard of GCC use the path, which I do not know?

  2. Why does not she search for printf eclipse? The header file contains stdio.h and includes the announcement of printf - so why does the eclipse code editor tell me he can not solve it?

  3. Why are header files so split? I know that I need other header files if I am creating another triangle (eg PowerPC) - but why does GNU GCC separate those headings in different diaries?

    Redline for normal type is usually not due to you It contains the path in your standard library for your project ... They are included in the properties of the project Make sure that there is an entry in your C ++ code for the compiler that you are using C ++ standard Matches Libs folder.

Comments