Hi,
Just got back to playing around with this again.
I was getting an error because the compiler didn't know where a standard include was (stdio.h). This is easy to fix because you need to call vcvars.bat which sets up all includes and directories before you compile.
However, shake never reported the error and just reported that it failed to compile. I had to extract the command line and run it again in the command line to get the real error.
Shake Reports the follow
===================================================================
Error when running Shake build system:
* _build/run.exe
* _build/hello.o
user error (Development.Shake.cmd, system command failed
Command: C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/amd64/cl.exe /showIncludes /c hello.cpp /Fo_build/hello.obj
Exit code: 2
Stderr:
Microsoft (R) C/C++ Optimizing Compiler Version 17.00.60610.1 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
)
===================================================================
While running from the command line reports the following
===================================================================
D:\work\personal\testllvm>"C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/amd64/cl.exe" /showIncludes /c hello.cpp /Fo_build/hello.obj
Microsoft (R) C/C++ Optimizing Compiler Version 17.00.60610.1 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
hello.cpp
hello.cpp(1) : fatal error C1034: stdio.h: no include path set
===================================================================
Am I not extracting the output in shake correctly to display the errors to the users?
Thanks,
-= Dave