Clang.exe: error: there is no such file or directory in the cross-platform Visual Studio 2015 template

I installed the VS 2015 cross-platform tools and created a new project using the Native-Activity Application (Android) template. Then I tried to compile the application without changes. I get the following errors:

1>------ Build started: Project: Android1.NativeActivity, Configuration: Debug x64 ------
1>  ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
1>  ANT_HOME=C:\apache-ant-1.9.6
1>  JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_65
1>  NDK_ROOT=C:\android-ndk-r14b-windows-x86_64\android-ndk-r14b
1>  pch.h
1>clang.exe : error : no such file or directory: 'C:UsersTomdocumentsvisual studio 2015ProjectsAndroid1Android1Android1.NativeActivitypch.h'
1>clang.exe : error : no input files

I noticed that in the line "no such file or directory:" the file he is looking for looks like the full path to pch.h with all the characters "\" removed. How can I prevent this? This seems to be an artifact of using clang.exe on the Windows platform.

+4
source share
1 answer

, "android-ndk-r14b" "android-ndk-r13b". , Android NDK, .

, "clang.exe" "android-ndk-r14b" escape - "C:\\Users\\Documents..." "C:\Users\Documents..."

+3

Source: https://habr.com/ru/post/1674263/


All Articles