Sign in to follow this  
marti901

Error in old allegro project

Recommended Posts

I was trying to run a old project i made with C++/Allegro. It's made in virtual studio c++ 2010.
But i'm getting errors i can't fix.

Error:


>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\yvals.h(194): warning C4384: #pragma 'detect_mismatch' should only be used at global scope
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\yvals.h(199): warning C4384: #pragma 'detect_mismatch' should only be used at global scope
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\yvals.h(535): error C2870: 'std' : a namespace definition must appear either at file scope or immediately within another namespace definition
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\yvals.h(591): error C2870: 'std' : a namespace definition must appear either at file scope or immediately within another namespace definition
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\math.h(27): error C2598: linkage specification must be at global scope
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\math.h(37): fatal error C1903: unable to recover from previous error(s); stopping compilation

How can i fix this? An what greats this errors(probably something easy i down think off).

Share this post


Link to post
Share on other sites
Sounds like a missing ; after a class, or maybe a missing } after a namespace, or something similar. If you could post your code it'd really help. Try removing files from the project until it compiles (it may not [i]link[/i] because of missing functions!) and then add things back in until you get the error again, that should at least point you in the direction of the problem.

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