SimbaSpirit
November 6th, 2008, 08:29 AM
Alright, I know this sounds like I'm asking for c++ help, but this only started after I updated to Intrepid (which updated codeblocks and a couple of its corresponding libs).
Real simple test:
#include <iostream>
#include <string>
#include <sstream>
#include <cmath>
using namespace std;
int main(){
system("clear");
cin.ignore( numeric_limits <streamsize> ::max(), '\n' );
return 0;
}
Errors:
=== Debug ===
In function ‘int main()’:
error: ‘system’ was not declared in this scope
error: ‘numeric_limits’ was not declared in this scope
error: expected primary-expression before ‘>’ token
error: no matching function for call to ‘max()’
=== Build finished: 4 errors, 0 warnings ===|
This all worked prior to intrepid. I tried uninstalling codeblocks, re-downloading codeblocks and libs from the website, and reinstalling (ignoring the "newer version exists" warnings).
Is anyone else having this problem, or does anyone else know enough about the way codeblocks works to suggest a fix?
Everything compiles and runs fine in windows still.
Thanks,
-SS
Real simple test:
#include <iostream>
#include <string>
#include <sstream>
#include <cmath>
using namespace std;
int main(){
system("clear");
cin.ignore( numeric_limits <streamsize> ::max(), '\n' );
return 0;
}
Errors:
=== Debug ===
In function ‘int main()’:
error: ‘system’ was not declared in this scope
error: ‘numeric_limits’ was not declared in this scope
error: expected primary-expression before ‘>’ token
error: no matching function for call to ‘max()’
=== Build finished: 4 errors, 0 warnings ===|
This all worked prior to intrepid. I tried uninstalling codeblocks, re-downloading codeblocks and libs from the website, and reinstalling (ignoring the "newer version exists" warnings).
Is anyone else having this problem, or does anyone else know enough about the way codeblocks works to suggest a fix?
Everything compiles and runs fine in windows still.
Thanks,
-SS