Hi Sterling,
sorry for posting to same thread again but I am facing issues while adding include paths in windows CPP build.
The way I am trying is like below
if (toolChain in VisualCpp) {
cppCompiler.args “/nologo”, “/W3”, “/WX-”, “/Oy-”, “/Gm”, “/EHsc”, “/GS”, “/fp:precise”, “/Zc:wchar_t”, “/Zc:forScope”, “/GR”, “/Gd”, “/analyze-”, “/errorReport:queue”
cppCompiler.args “/D_WINDOWS”, “/D_AFX_NO_DB_SUPPORT”, “/D_CONSOLE”, “/DWIN32”, “/D_VC80_UPGRADE=0x0600”, “/D_MBCS”
cppCompiler.args “/D_AFXDLL”
tasks.withType(CppCompile) {
includes.from("$project.projectDir")
includes.from("$project.buildDir…")
includes.from(“I:\sybase\OCS-12_0\include”)
includes.from(“I:\OOToolKit\4.4.0\Windows_VC10\include\include”)
}
but I get error like below
What went wrong: Could not compile build file ‘H:\Work\CopiedCode\CopiedSourceCode\build.gradle’.
startup failed: build file ‘H:\Work\CopiedCode\CopiedSourceCode\build.gradle’: 207: unexpected char: ‘’ @ line 207, column 37. includes.from("$project.buildDir…") ^ 1 error
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
I have already started another thread but I did not get any response on that.
http://forums.gradle.org/gradle/topics/how-can-we-build-windows-cpp-code-which-is-using-precompiled-pch-files
http://forums.gradle.org/gradle/topics/how-to-add-include-and-linker-paths-in-visual-studio-build
Can you please provide pointers for windows build using VisualCpp toolchain?