Symbol could not be resolved - MinGW + STL [message #790534] |
Sat, 04 February 2012 11:59 |
Dylan Kiss Messages: 2 Registered: February 2012 |
Junior Member |
|
|
I set up Eclipse on my Windows 7 32-bit computer and installed MinGW as well.
When I create a new project and add the appropriate include paths, I can use everything from the standard library and it compiles smoothly.
The thing that bothers me is that Eclipse keeps underlining every symbol I use from the standard library, saying: "Symbol <symbol-i-used> could not be resolved".
For example:
#include <iostream>
using namespace std;
int main(int argc, char* argv[]) {
cout << "Hello, World!" << endl; // Symbol 'cout' could not be resolved
return 0;
}
If somebody would have a solution for this, I'd be very grateful, because what do you use an IDE for? Exactly, to make coding easier (like autocomplete features).
[Updated on: Sat, 04 February 2012 12:02] Report message to a moderator
|
|
|
|
Re: Symbol could not be resolved - MinGW + STL [message #791874 is a reply to message #790534] |
Mon, 06 February 2012 11:03 |
Jeroen Meij Messages: 1 Registered: February 2012 |
Junior Member |
|
|
I seem to be having the same problem. I can build and run my hello world application, but 'cout' remains unsolved. I have read some other topics to find solutions, but have not been succesfull so far. My system seems identical to the topic starter, a windows 32bit system with CDT and MinGW.
To answer the reply for my case.
Current Toolchain - MinGW GCC
Current Builder - CDT Internal Builder
I have made some progress though. When I started of even iostream and std couldn't be resolved, but adding 'C:\MinGW\lib\gcc\mingw32\4.6.1\include\c++\' to paths and symbols at GNU C++ solved that.
Hope you guys can help out.
EDIT: I found out. By expanding the paths and symbols with the following options:
C:\MinGW\lib\gcc\mingw32\4.6.1\include\c++
C:\MinGW\lib\gcc\mingw32\4.6.1\include\c++\mingw32
C:\MinGW\lib\gcc\mingw32\4.6.1\include\c++\backward
C:\MinGW\lib\gcc\mingw32\4.6.1\include
C:\MinGW\include
C:\MinGW\lib\gcc\mingw32\4.6.1\include-fixed
The option 'cout' is now resolved.
[Updated on: Mon, 06 February 2012 11:53] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04367 seconds