简体   繁体   中英

Is there a 2003 compatibility setting in Visual Studio 2008 (compiler compatibility, not project / solution files)

I have a Visual Studio 2003 solution that I've opened with VS2008, and it converted successfully. However, it won't build because the code contains some things that were acceptable under Visual Studio 2003, but simply don't fly under Visual Studio 2008. Changing the code would be really difficult in my particular situation. Is there a flag or something that I can set which would use 2003-compatible compilation?

Cheers, Frank

The default warning level in VS2008 is -W3. Change the warning level to -W2 (more forgiving). I had the same issue moving from VC6 to VS2008.

Right-click on the project; select Properties; Warning Level is set in the Compiler section.

There is not a compatibility switch. You'll have to install VS2k3 if you can't update the source code.

绝对您错过了somthing.othetwise vs2008不支持任何此类清算。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM