Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: vurentjie on March 01, 2008, 12:15:57 am

Title: iostream ??
Post by: vurentjie on March 01, 2008, 12:15:57 am
#define GLUT_DISABLE_ATEXIT_HACK

#include <iostream>
#include <stdlib.h>
#include <cmath>

//then other includes like glut etc.

but i get this.....
 
F:\GLUT_PROJECTS\New Folder (5)\Untitled3.c|3|iostream: No such file or directory|

why is this happening? i have tried .h extension even, it picks it up compiling another project and with this one it bombs out, what am i missing here? sometimes it also doesn't pick up cmath, should i be adjust my compiler settings?

i don't mean to be bleak, but i am finding other strange things happening, sometimes my linker options for glut are just dropped in the build options, and then i compiled this file that i am working on now earlier just fine, reopened it and it gives me either this error or this one.....

line 19 --->const int BSIZE = 20;
line 20 ---->const int NCOL = 7;

F:\GLUT_PROJECTS\windowpik\pik\main.cpp|20|error: expected unqualified-id before numeric constant|

it registers line 19 but halts on line 20, this is kinda nuts, i got it working then it stopped what is up here?

Title: Re: iostream ??
Post by: vurentjie on March 01, 2008, 12:26:05 am
sorry i am a complete idiot, for some reason while i was checking things i changed my glut.h for another glut.h which wasn't quite the glut.h it should be,...sorry for wasting precious forum space.