no idea what this compiler error means

im trying to compile my assignment and im getting this error

/usr/include/c++/4.0.0/i686-apple-darwin9/bits/c++config.h:64: error: expected constructor, destructor, or type conversion before ‘namespace’
/usr/include/c++/4.0.0/i686-apple-darwin9/bits/c++config.h:68: error: expected namespace-name before ‘;’ token
/usr/include/c++/4.0.0/i686-apple-darwin9/bits/c++config.h:68: error: ‘<type error>’ is not a namespace


i don't even have a config.h file :S

im not gonna post whole source code as this is an assignment, but what would be a common mistake for an error like this?

note: the only namespace im using is
namespace std;
thanks
Are you sure you have using before namespace std;?
yes i do. this is frustrating because its not telling what file the error in.
Make sure you aren't defining any of the same symbols that the C++ libraries define, such as std, etc.

One thing to try is to make sure you #include any C++ (system) header files before any of your header files.
Topic archived. No new replies allowed.