Jump to content
  • Advertisement
Sign in to follow this  
marti901

Error in old allegro project

This topic is 2615 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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 link 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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!