HighLatency
March 27th, 2003, 06:32 PM
I'm working on a project for school and the code compiles on vc++ 6.0 in the labs, but when I try to compile the code on vc++ .NET I get the following errors:
error C2039: 'exit' : is not a member of 'operator' 'global namespace'"
error C2873: 'exit' : symbol cannot be used in a using-declaration
Both errors link to line 19 of cstdlib...
This is a win32 console application.
Here is a quick and simple .ccp file which will throw the above errors when you try to build it:
#include <iostream>
using namespace std;
int main() {
return 0;
}
Any idea's? If I comment out the using namespace std; line it has no effect, however commenting out the using statement and the #include allows the program to compile.
error C2039: 'exit' : is not a member of 'operator' 'global namespace'"
error C2873: 'exit' : symbol cannot be used in a using-declaration
Both errors link to line 19 of cstdlib...
This is a win32 console application.
Here is a quick and simple .ccp file which will throw the above errors when you try to build it:
#include <iostream>
using namespace std;
int main() {
return 0;
}
Any idea's? If I comment out the using namespace std; line it has no effect, however commenting out the using statement and the #include allows the program to compile.