I’ve got MSVC 10.0 installed, I have the environment variable ‘VS100COMNTOOLS’ set.
If I run vcvarsall.bat and then compile it works, but only in cmd.
In flashdevelop’s pre-build command line, I run vcvarsall.bat, but it still produces the error.
How do I fix this?
Running process: C:\Program Files (x86)\FlashDevelop\Tools\fdbuild\fdbuild.exe "C:\Users\hedge\Projects\Haxe\Test\Test.hxproj" -ipc 0d5c9d75-3b8c-4438-bf14-eec465e86c55 -version "3.2.1" -compiler "C:\Dev\Haxe\haxe-3.2.1" -notrace -library "C:\Program Files (x86)\FlashDevelop\Library" -target "windows"
Building Test
Running Pre-Build Command Line...
cmd: "C:\Dev\Haxe\haxe-3.2.1/haxelib" run lime build "project.xml" windows -release -Dfdb
cl.exe -Iinclude -nologo -O2 -DHX_WINDOWS -D_USING_V140_SDK71_ -GR -Oy- -c -EHs -GS- -arch:SSE -IC:/Dev/Haxe/haxe-3.2.1/lib/hxcpp/3,2,180/include -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -D_CRT_SECURE_NO_DEPRECATE -D_ALLOW_MSC_VER_MISMATCH -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -DHX_WIN_MAIN -wd4996 -MT ./src/openfl/ui/GameInputControl.cpp -FoC:/Users/hedge/Projects/Haxe/Test/bin/windows/cpp/obj/obj/msvc-ncxp/8947e2d3_GameInputControl.obj
cl.exe -Iinclude -nologo -O2 -DHX_WINDOWS -D_USING_V140_SDK71_ -GR -Oy- -c -EHs -GS- -arch:SSE -IC:/Dev/Haxe/haxe-3.2.1/lib/hxcpp/3,2,180/include -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -D_CRT_SECURE_NO_DEPRECATE -D_ALLOW_MSC_VER_MISMATCH -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -DHX_WIN_MAIN -wd4996 -MT ./src/sys/io/FileOutput.cpp -FoC:/Users/hedge/Projects/Haxe/Test/bin/windows/cpp/obj/obj/msvc-ncxp/de19829f_FileOutput.obj
cl.exe -Iinclude -nologo -O2 -DHX_WINDOWS -D_USING_V140_SDK71_ -GR -Oy- -c -EHs -GS- -arch:SSE -IC:/Dev/Haxe/haxe-3.2.1/lib/hxcpp/3,2,180/include -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -D_CRT_SECURE_NO_DEPRECATE -D_ALLOW_MSC_VER_MISMATCH -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -DHX_WIN_MAIN -wd4996 -MT ./src/sys/FileSystem.cpp -FoC:/Users/hedge/Projects/Haxe/Test/bin/windows/cpp/obj/obj/msvc-ncxp/4367fff0_FileSystem.obj
cl.exe -Iinclude -nologo -O2 -DHX_WINDOWS -D_USING_V140_SDK71_ -GR -Oy- -c -EHs -GS- -arch:SSE -IC:/Dev/Haxe/haxe-3.2.1/lib/hxcpp/3,2,180/include -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -D_CRT_SECURE_NO_DEPRECATE -D_ALLOW_MSC_VER_MISMATCH -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -DHX_WIN_MAIN -wd4996 -MT ./src/openfl/ui/GameInputDevice.cpp -FoC:/Users/hedge/Projects/Haxe/Test/bin/windows/cpp/obj/obj/msvc-ncxp/8947e2d3_GameInputDevice.obj
cl.exe -Iinclude -nologo -O2 -DHX_WINDOWS -D_USING_V140_SDK71_ -GR -Oy- -c -EHs -GS- -arch:SSE -IC:/Dev/Haxe/haxe-3.2.1/lib/hxcpp/3,2,180/include -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -D_CRT_SECURE_NO_DEPRECATE -D_ALLOW_MSC_VER_MISMATCH -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -DHX_WIN_MAIN -wd4996 -MT ./src/openfl/ui/Keyboard.cpp -FoC:/Users/hedge/Projects/Haxe/Test/bin/windows/cpp/obj/obj/msvc-ncxp/8947e2d3_Keyboard.obj
cl.exe -Iinclude -nologo -O2 -DHX_WINDOWS -D_USING_V140_SDK71_ -GR -Oy- -c -EHs -GS- -arch:SSE -IC:/Dev/Haxe/haxe-3.2.1/lib/hxcpp/3,2,180/include -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -D_CRT_SECURE_NO_DEPRECATE -D_ALLOW_MSC_VER_MISMATCH -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -DHX_WIN_MAIN -wd4996 -MT ./src/openfl/ui/GameInput.cpp -FoC:/Users/hedge/Projects/Haxe/Test/bin/windows/cpp/obj/obj/msvc-ncxp/8947e2d3_GameInput.obj
Process creation failure : cl.exe
cl.exe -Iinclude -nologo -O2 -DHX_WINDOWS -D_USING_V140_SDK71_ -GR -Oy- -c -EHs -GS- -arch:SSE -IC:/Dev/Haxe/haxe-3.2.1/lib/hxcpp/3,2,180/include -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -D_CRT_SECURE_NO_DEPRECATE -D_ALLOW_MSC_VER_MISMATCH -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -DHX_WIN_MAIN -wd4996 -MT ./src/sys/io/File.cpp -FoC:/Users/hedge/Projects/Haxe/Test/bin/windows/cpp/obj/obj/msvc-ncxp/de19829f_File.obj
Build halted with errors.
Done(1)
Does it work with a vanilla command prompt, using openfl test windows
, or does it have the same problem?
This is what I get when I try openfl test windows
cl.exe -Iinclude -nologo -O2 -DHX_WINDOWS -D_USING_V140_SDK71_ -GR -Oy- -c -EHs -GS- -arch:SSE -IC:/Dev/Haxe/haxe-3.2.1/
lib/hxcpp/3,2,180/include -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -D_CRT_SECURE_NO_DEPRECATE -D_ALLOW_MSC_VER_MISMATC
H -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -DHX_WIN_MAIN -wd4996 -MT ./src/sys/io/FileOutput.cpp -FoC:/Users/hedge/Project
s/Haxe/Test/bin/windows/cpp/obj/obj/msvc-ncxp/de19829f_FileOutput.obj
cl.exe -Iinclude -nologo -O2 -DHX_WINDOWS -D_USING_V140_SDK71_ -GR -Oy- -c -EHs -GS- -arch:SSE -IC:/Dev/Haxe/haxe-3.2.1/
lib/hxcpp/3,2,180/include -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -D_CRT_SECURE_NO_DEPRECATE -D_ALLOW_MSC_VER_MISMATC
H -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -DHX_WIN_MAIN -wd4996 -MT ./src/sys/FileSystem.cpp -FoC:/Users/hedge/Projects/H
axe/Test/bin/windows/cpp/obj/obj/msvc-ncxp/4367fff0_FileSystem.obj
cl.exe -Iinclude -nologo -O2 -DHX_WINDOWS -D_USING_V140_SDK71_ -GR -Oy- -c -EHs -GS- -arch:SSE -IC:/Dev/Haxe/haxe-3.2.1/
lib/hxcpp/3,2,180/include -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -D_CRT_SECURE_NO_DEPRECATE -D_ALLOW_MSC_VER_MISMATC
H -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -DHX_WIN_MAIN -wd4996 -MT ./src/openfl/ui/Keyboard.cpp -FoC:/Users/hedge/Projec
ts/Haxe/Test/bin/windows/cpp/obj/obj/msvc-ncxp/8947e2d3_Keyboard.obj
Process creation failure : cl.exe
cl.exe -Iinclude -nologo -O2 -DHX_WINDOWS -D_USING_V140_SDK71_ -GR -Oy- -c -EHs -GS- -arch:SSE -IC:/Dev/Haxe/haxe-3.2.1/
lib/hxcpp/3,2,180/include -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -D_CRT_SECURE_NO_DEPRECATE -D_ALLOW_MSC_VER_MISMATC
H -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -DHX_WIN_MAIN -wd4996 -MT ./src/openfl/ui/GameInput.cpp -FoC:/Users/hedge/Proje
cts/Haxe/Test/bin/windows/cpp/obj/obj/msvc-ncxp/8947e2d3_GameInput.obj
cl.exe -Iinclude -nologo -O2 -DHX_WINDOWS -D_USING_V140_SDK71_ -GR -Oy- -c -EHs -GS- -arch:SSE -IC:/Dev/Haxe/haxe-3.2.1/
lib/hxcpp/3,2,180/include -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -D_CRT_SECURE_NO_DEPRECATE -D_ALLOW_MSC_VER_MISMATC
H -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -DHX_WIN_MAIN -wd4996 -MT ./src/openfl/ui/GameInputDevice.cpp -FoC:/Users/hedge
/Projects/Haxe/Test/bin/windows/cpp/obj/obj/msvc-ncxp/8947e2d3_GameInputDevice.obj
cl.exe -Iinclude -nologo -O2 -DHX_WINDOWS -D_USING_V140_SDK71_ -GR -Oy- -c -EHs -GS- -arch:SSE -IC:/Dev/Haxe/haxe-3.2.1/
lib/hxcpp/3,2,180/include -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -D_CRT_SECURE_NO_DEPRECATE -D_ALLOW_MSC_VER_MISMATC
H -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -DHX_WIN_MAIN -wd4996 -MT ./src/sys/io/File.cpp -FoC:/Users/hedge/Projects/Haxe
/Test/bin/windows/cpp/obj/obj/msvc-ncxp/de19829f_File.obj
cl.exe -Iinclude -nologo -O2 -DHX_WINDOWS -D_USING_V140_SDK71_ -GR -Oy- -c -EHs -GS- -arch:SSE -IC:/Dev/Haxe/haxe-3.2.1/
lib/hxcpp/3,2,180/include -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -D_CRT_SECURE_NO_DEPRECATE -D_ALLOW_MSC_VER_MISMATC
H -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -DHX_WIN_MAIN -wd4996 -MT ./src/openfl/ui/GameInputControl.cpp -FoC:/Users/hedg
e/Projects/Haxe/Test/bin/windows/cpp/obj/obj/msvc-ncxp/8947e2d3_GameInputControl.obj
Still get the error. Process creation failure : cl.exe
Would you mind running haxelib set hxcpp 3.2.102
and see if it helps?
That appears to have done the trick! So what was happening there then? Nobody else appears to be reporting a similar error with the most recent build.
Hmm, I’m not sure, certain things have been changed for MingW support, but I think it has perhaps hurt basic MSVC support in some cases
Sorry for the thread necromancy, but I think this bit of knowledge warrants it.
Turns out that for the more recent versions of Visual Studio, C++ is not installed by default.
According to this stackoverflow thread you have to run setup again and manually enable it.
I had the same issue with the missing cl.exe file and that tip from stackoverflow resolved the issue for me.
4 Likes