Eclipse CDT + GCC error: function '...' could not be resolved
2013-04-18 16:09:28
I decide to make this diary visible to all others, 'cause the problem may drive Eclipse CDT c++ users on Linux PCs crazy:
Problem:"function '...' could not be resolved"
Solution:
1. (selective) Change all c libraries to the updated version
e.g. <stdio.h> ---> <cstdio>
2. Project->Properties->C/C++ General->Path and Symbols
add to the C++ include directories the paths needed when build:
e.g.
3. If the problem still exists, try to instal Eclipse build-essential:
~$ sudo aptitude install build-essential
4. If this still can't solve your problem, try:
Window->Preferences->C/C++->Indexer->Use active build configuration
5. Sometimes you need to re-index; right-click on the project folder and go to Index -> Rebuild.
Problem:"function '...' could not be resolved"
Solution:
1. (selective) Change all c libraries to the updated version
e.g. <stdio.h> ---> <cstdio>
2. Project->Properties->C/C++ General->Path and Symbols
add to the C++ include directories the paths needed when build:
e.g.
3. If the problem still exists, try to instal Eclipse build-essential:
~$ sudo aptitude install build-essential
4. If this still can't solve your problem, try:
Window->Preferences->C/C++->Indexer->Use active build configuration
5. Sometimes you need to re-index; right-click on the project folder and go to Index -> Rebuild.