SFML community forums

Help => General => Topic started by: Escarlatum on August 12, 2017, 01:06:52 am

Title: Issue with SFML in Visual Studio 2017
Post by: Escarlatum on August 12, 2017, 01:06:52 am
When trying to compile a c++ code, including the sfml api libraries, the following error occurs:

Quote
Internal Compiler Error in 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\CL.exe' Choose the Technical Support command on the Visual C ++ Help menu, Or open the help desk file for more information C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(358,5): error MSB6006: "CL.exe" Was terminated with code 2.


I searched on the internet for a solution for this, but I couldn't solve it...

Heres the code with the error:

(click to show/hide)

I would like to know if there is a way to solve it, i dont know how to recompile the sfml libraries, so, someone tell me how to recompile the libraries if necessary...
Title: Re: Issue with SFML in Visual Studio 2017
Post by: eXpl0it3r on August 12, 2017, 03:09:54 am
Sounds like the VS 2017 compiler crashed for some reason... :o
I've not run into any issues with VS 2017 and SFML (or C++), so it's either a bug or faulty VS 2017 installation.

The official tutorial (https://www.sfml-dev.org/tutorials/2.4/compile-with-cmake.php) explains how to build SFML.
Alternatively you can grab some binaries compiled with VS 2017 from my nightlybuilds site link in my signature.