编译问题C ++ [英] compile problem C++

查看:188
本文介绍了编译问题C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们。
我需要编译一些项目。
我从那里安装Visual C ++ 6.0 + Microsoft Platform SDK 2003
http://www.microsoft.com/downloads/en/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en #requirements

我也在工具 - >选项 - >目录下添加了SDK路径,并将其移动到顶部。



但我编译时仍然遇到这个错误...


c:\users\admin\downloads \ microsoft visual c ++ 6.0 standard edition\vc98\include\\\
ew(9):致命错误C1083:无法打开包含文件:'exception':没有此类文件或目录





c:\users\admin\downloads\microsoft visual c ++ 6.0标准版\vc98\include\ios(9):致命错误C1083:无法打开包含文件:'streambuf':没有此类文件或目录


任何人都有想法?

解决方案

下载VC6等旧编译器版本的唯一原因你需要重建一个为该精确版本开发的项目。但这个代码显然不是。



尝试使用最新的Visual C ++,

注意:2003年2月的SDK是最后一个兼容的SDK,它是2010年第一次发布的#2010-Visual-CPPrel =nofollow


Platform SDK - 2003年2月版(英语)325(MB)

文件名:en_platformsdk_win2003.exe



发布日期:UTC 4/4/2003 9:25:00 PM



最后更新时间(UTC):8/25/2005 9:36:39 PM



SHA1:33E0434F63EFFC0A04B3401D992AE4478E4C80E7 ISO / A519A771



可用于级别:MSDN OS(VL); VS Pro与MSDN Pro(VL); VS Pro与MSDN Premium(Empower); MSDN操作系统(零售);显影剂AA; VS Pro与MSDN(零售); MSDN通用(零售); VSTS团队套件(VL); VSTS体系结构(VL); VS Premium与MSDN(MPN); VSTS测试(VL); VS Pro与MSDN Premium(MPN); MSDN通用(VL); VSTS数据库(VL); VS Pro与MSDN Premium(零售); VSTS测试(零售); VSTS开发(零售); VSTS架构(零售); VSTS团队套件(零售); VSTS数据库(零售); BizSpark Admin; BizSpark; VS Pro与MSDN嵌入式(零售); VS Pro与MSDN嵌入式(VL); VS Test Pro with MSDN(VL); VS Ultimate带有MSDN(VL); VS Premium与MSDN(VL); VS Pro与MSDN(VL); VS Test Pro与MSDN(零售); MSDN要点; VS Premium与MSDN(零售); VS Ultimate与MSDN(零售); MSDN for Action Pack; VS Ultimate使用MSDN(MPN); VS Ultimate with MSDN(NFR FTE);


平台SDK已经免费多年了, a href =http://social.msdn.microsoft.com/Forums/en/windowssdk/thread/83205c43-ef46-447d-ae54-92bbeb543c38 =nofollow>此主题,似乎仍然生活。


Hey guys. I need to compile some project. I installed Visual C++ 6.0 + Microsoft Platform SDK 2003 from there http://www.microsoft.com/downloads/en/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en#requirements

I also added SDK paths under Tools->Options->Directories and moved them to top.

But I am still getting this errors when compiling...

c:\users\admin\downloads\microsoft visual c++ 6.0 standard edition\vc98\include\new(9) : fatal error C1083: Cannot open include file: 'exception': No such file or directory

And

c:\users\admin\downloads\microsoft visual c++ 6.0 standard edition\vc98\include\ios(9) : fatal error C1083: Cannot open include file: 'streambuf': No such file or directory

Anyone got some idea?

解决方案

The only reason to download an old compiler version like VC6 would be you need to rebuild a project developed for that exact version. But this code clearly isn't.

Try it with the latest Visual C++, which is 2010 as Andre commented.

Note: The Feb 2003 SDK, the last one compatible with VC6, is available on MSDN.

Platform SDK - February 2003 Edition (English) 325 (MB)

File Name: en_platformsdk_win2003.exe

Date Published (UTC): 4/4/2003 9:25:00 PM

Last Updated (UTC): 8/25/2005 9:36:39 PM

SHA1: 33E0434F63EFFC0A04B3401D992AE4478E4C80E7 ISO/CRC: A519A771

Available to Levels: MSDN OS (VL); VS Pro with MSDN Pro (VL); VS Pro with MSDN Premium (Empower); MSDN OS (Retail); Developer AA; VS Pro with MSDN (Retail); MSDN Universal (Retail); VSTS Team Suite (VL); VSTS Architecture (VL); VS Premium with MSDN (MPN); VSTS Test (VL); VS Pro with MSDN Premium (MPN); MSDN Universal (VL); VSTS Database (VL); VS Pro with MSDN Premium (Retail); VSTS Test (Retail); VSTS Development (Retail); VSTS Architecture (Retail); VSTS Team Suite (Retail); VSTS Database (Retail); BizSpark Admin; BizSpark; VS Pro with MSDN Embedded (Retail); VS Pro with MSDN Embedded (VL); VS Test Pro with MSDN (VL); VS Ultimate with MSDN (VL); VS Premium with MSDN (VL); VS Pro with MSDN (VL); VS Test Pro with MSDN (Retail); MSDN Essentials; VS Premium with MSDN (Retail); VS Ultimate with MSDN (Retail); MSDN for Action Pack; VS Ultimate with MSDN (MPN); VS Ultimate with MSDN (NFR FTE);

Platform SDKs have been free for quite a few years now, some links are provided in this thread and seem to still be live.

这篇关于编译问题C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆