Sign in to follow this  
evanofsky

exit craziness

Recommended Posts

So I change a parameter to one of my functions, recompile, and it spits out a bunch of errors. Every single place where I referenced the "exit" function, it gives this error:
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\cstdlib(22):
error C2039: 'exit' : is not a member of 'operator``global namespace'''
I've referenced that function since the beginning of my project almost a year ago and never had this trouble. What's going on?

Share this post


Link to post
Share on other sites
I'd venture at a guess that something you changed is causing a syntax error -- something like an extra or missing or misplaced special character (curly bracket, semicolon, colon, parenthesis).

Share this post


Link to post
Share on other sites
Check if you accidentally included any headers in a namespace. Like

namespace MyNamespace{
#include <iostream>
/...
}


That can cause problems like that.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this