Search code examples
c++exceptioncompilationstreambuf

compile problem C++


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?


Solution

  • 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.