问题描述
我使用 Windows 7
并关注 Get started with Kotlin/Native using the command-line compiler,下载 kotlin-native-windows-1.5.10.zip 并将其 bin
添加到系统的 PATH
。但是当我尝试 kotlinc-native hello.kt -o hello
时,得到这个错误:
error: compilation Failed: Cannot run program "C:\Users\<user-name>\.konan\dependencies\msys2-mingw-w64-x86_64-clang-llvm-lld-compiler_rt-8.0.1/bin/clang++": CreateProcess error=193,%1 is not a valid Win32 application
问题是什么,我该如何解决?
编辑:
问题似乎是由 clang++.exe
引起的
C:\Users\<user-name>\.konan\dependencies\msys2-mingw-w64-x86_64-clang-llvm-lld-compiler_rt-8.0.1/bin/
因为当我尝试运行它时,出现此错误:
clang++ is not a valid Win32 application
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)