Jump to content
  • Advertisement
Sign in to follow this  
Boruki

XP Problems

This topic is 4589 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've just moved from 2000 to XP. I unfortunately don't have time to change to a new compiler and am still running MSVC++ 5 (har har). Changing to XP has caused errors to appear and I'm wondering if anyone knows how to fix them properly. The first error is: error C2955: 'vector' : use of class template requires template argument list Cause by: using std::vector; The second error is: error C2039: 'openmode' : is not a member of 'ios' Which is in "fstream". Any help is much appreciated..

Share this post


Link to post
Share on other sites
Advertisement
It looks like you are trying to mix Microsoft's pre-standard C++ with the current Standard C++.

If you are very lucky, it might just be a matter of changing the names of header files, using namespaces, and changing the names of a few constants and fuctions to match their counterpart.

If you are very unlucky, you might have to redo everything that has to do with templates.

Really the only way to fix the problem is to go through the entire program and study what needs to change, then find the best way to change it. There are lots of articles that can help. It can be a lot of work, and it was a major growing pain felt everywhere between late 1999 and early 2003. Good luck with it.

Share this post


Link to post
Share on other sites
The problem is that it's all in code that I didn't write.. stuff "borrowed" from tutorials to see how it would work when put inside my playabout project. Would my best bet be to just remove their code then? I don't know if I even use it at the moment.

Share this post


Link to post
Share on other sites
Probably the best thing would be to go download and install a current compiler (Zero-cost Visual C++ 2005) and use it.

Trying to learn about programming with pre-standard C++ would be like trying to become a certified auto mechanic by studying the Model T Ford.

[edit - spelling]

Share this post


Link to post
Share on other sites
Quote:
Original post by frob
Probably the best thing would be to go download and install a current compiler (Zero-cost Visual C++ 2005) and use it.

Trying to learn about programming with pre-standard C++ would be like trying to become a certified auto mechanic by styding the Model T.


I have used the new compiler and unfortunately it gives me 1500+ errors due to changes. I've been using MSVC++ 5 for 7+ years and changes made even in 6 (and upwards) which just make it difficult for me to work with them.

However adding a single _ and removing a 3DS I don't even use fixed the problems. Now I just need to find why my cg.lib is corrupt/non accessible.

Thanks for the swift help frob.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!