This repository was archived by the owner on Jan 12, 2022. It is now read-only.
This repository was archived by the owner on Jan 12, 2022. It is now read-only.
VS on XP can't find emcc.bat for linking #24
Open
Description
When I try to build my VS 2010 project with the default installation setup, compiles work but links fail with an error like
"Can't find C:/Program"
For some reason the part of VS that invokes the linker is confused by spaces in the path name in $EMSCRIPTEN. I tried both '/' and '' as path separators since when it first failed on XP I was using '' but it was working on Windows 7 which was using '/'. However it fails on XP with either.
My fix has been to set EMSCRIPTEN to the DOS short-form path which does not have spaces with
setx EMSCRIPTEN $(cygpath -d -m "$EMSCRIPTEN")
[You need cygwin to do the above. I have no idea how to obtain the DOS short-form with a Windows command.]
This gives a path like
C:/PROGRA1/EMSCRI1/EMSCRI1/172EFD1.8