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

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 … Read more

Windows Script Host Error: Invalid character – Code:800A03F6 – Source: Microsoft JScript compilation error

Update: On Windows .js files are associated to Windows Scripting Host by default, so the script will not be run with Node. Open a file explorer and find a JavaScript file, open the JavaScript file’s properties and then “open with”, select the Node.js program file to open that kind of files. The error should stop … Read more

Can I use #include “pch.h” instead of #include “stdafx.h” as my precompile header in Visual Studio C++?

The default precompiled headers name was stdafx.h for several years now. Lately, with VS 2017, they changed the default name the project wizard creates to pch.h. I don’t know why but they did it. You can adjust the name of the precompiled header file in the Project Properties under Configuration Properties -> C/C++ -> Precompiled … Read more

Linking files in g++

You probably tried to either compile and link instead of just compiling source files or somehow forgot something. Variation one (everything in one line; recompiles everything all the time): g++ -o myexecutable first.cpp second.cpp third.cpp [other dependencies, e.g. -Lboost, -LGL, -LSDL, etc.] Variation two (step by step; if no -o is provided, gcc will reuse … Read more