Can't get visual studio C++ include file 'excpt.h' to get installed

前端 未结 8 2110
隐瞒了意图╮
隐瞒了意图╮ 2020-12-16 20:13

I\'m trying to compile a visual studio C++ project and I can\'t get anywhere because of the compiler reporting \"Cannot open include file: \'excpt.h\': No such file or direc

相关标签:
8条回答
  • 2020-12-16 20:48

    I had this problem with a project that had been updated to VS2017 from VS2015.

    This was a header included via windows.h. I knew this header should have no problems as I had other projects created directly in VS2017 that used windows.h.

    Another symptom was that the intellisense was highlighting includes of standard headers (e.g string, vector etc), although these were not generating compile errors.

    The fix for me was similar to VS 2010 Cannot open source file “string”.

    Initially, I retargeted the project, hoping this would help (right-click the project, select retarget projects), but this did not in itself cure the problem.

    I then took a working project and copied the include directories from project properties->Configuration Properties->VC++ Directories and used these to replace the same property for my broken project. This fixed the problem.

    Initially, the value for this property was

    $(VCInstallDir)include;$(VCInstallDir)atlmfc\include;$(WindowsSDK_IncludePath);
    

    The replacement value was

    $(VC_IncludePath);$(WindowsSDK_IncludePath);
    
    0 讨论(0)
  • 2020-12-16 20:52

    It seems the Visual Studio 2012 installer is buggy when it comes to installing into a different drive letter than C:. I have installed the VS2012 into the D: drive and got the same error. I found that for some unknown reason the installer put some of the files into the correct location at:

    D:\Program Files (x86)\Microsoft Visual Studio 11.0

    but the remaining files were at

    C:\Program Files (x86)\Microsoft Visual Studio 11.0

    so I have moved the files from the C: into the D: location and it fixed the problem.

    0 讨论(0)
  • 2020-12-16 20:55

    Fixing your Visual Studio installation is a good idea, but you don't necessarily need to re-install the same old version of VS. I uninstalled VS 2015, then modified my VS 2017 installation to add the VC++ v140 build tools, and now my project builds.

    0 讨论(0)
  • 2020-12-16 21:01

    See if you have it at C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\excpt.h Check to be sure that the system include-paths are correct in Visual Studio. If all else fails, uninstall everything, all SDK's, etc., and re-install Visual C++.

    Third party search programs do a better job than the Windows one for finding things. Try Agent Ransack. It's free.

    0 讨论(0)
  • 2020-12-16 21:03

    Some situation cause such problem. If you have uninstalled vs2010. you lost platform C++ binaries for .net framework 4 forever. You have to delete all of VS 2010 2012 2013, clean system up and its accompany components and reinstall them from scratch. Or you can download this package. Include them in your project that may solve your problem properly.

    0 讨论(0)
  • 2020-12-16 21:04

    one simeple way,just copy vc directory(C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC) from other computer

    0 讨论(0)
提交回复
热议问题