|Re: Eclipse does not find standard headers [message #502056 is a reply to message #500756]
||Sat, 05 December 2009 00:24
| Marc-André Laperle
Registered: July 2009
I downloaded the eclipse CDT package and tried to get a simple Hello-World running. Unfortunally this is not working.
When compiling, I get the following warning: "../main.cpp:1:20: warning: iostream: No such file or directory". So iostream is not found.
The strange thing about this is that when I go to the Debug directory of the project and manually "make" it, everything works fine and I get the desired binary.
Why is that not working inside eclipse? Is there anything I have to setup? Did not found anything about this issue (I'm using Linux).
Have a nice friday,
In the Project Explorer view, under your project, do you see a Includes tree with /usr/include, /usr/lib/gcc... ? If not, maybe you could try another project and make sure you select the correct toolchain in the project wizard. If it still doesn't work, try adding the paths manually in the project properties > C/C++ General > Path and Symbols, Includes. My list look like this on Ubuntu 9.10:
You might need to browse your filesystem a bit to find the equivalent.
About the same here with Ganymede:
Errormsg: 'glGenBuffers' was not declared in this scope.
I tried in another project and added:
same also with:
I'm using the latest openGL
3.2 Nvidia driver 32bit on openSuse 11.2 ( GeForce 8800 GTS 512MB )
glext is included. I checked within glext.h and found it.
What else could I try?
michael@23-194-pool:~> glewinfo | grep glGenBuffer
It's easier to use glew.h instead of gl.h, glext.h, etc.
// window setup ...
GLenum err = glewInit();
if (GLEW_OK != err)
fprintf(stderr, "Error: %s\n", glewGetErrorString(err));
// do usual OpenGL stuff
Powered by FUDForum
. Page generated in 0.01482 seconds