NDK r16b 独立工具链错误:"/usr/bin/ld: this linker was not configured to use sysroots"
NDK r16b standalone toolchain error: "/usr/bin/ld: this linker was not configured to use sysroots"
我正在尝试使用Android NDK构建一个应用程序。编译成功,但在链接步骤中失败,错误如下:
1> /usr/bin/ld: this linker was not configured to use sysroots
clang50++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
我正在使用
--sysroot=<MyNDKPath>/sysroot
和
-isystem <MyNDKPath>/sysroot/usr/include/arm-linux-androideabi
编译时
谁能帮我解决这个问题?
对我来说,
这是一条通往 ld 的缺失之路。我将其添加到 Eclipse 中的 PATH 环境变量中,它起作用了:
${ANDROID_NDK}toolchainsaarch64-linux-android-4.9prebuiltwindows-x86_64bin
相关文章:
- 如何修复"error: ‘_1’ was not declared in this scope"?
- 为什么我会收到"Run-Time Check Failure #2 - Stack around the variable 'pr' was corrupted"错误?
- wx通用目录控制错误"wxTheFileIconsTable was nullptr"
- QT GStreamer Windows linker problems
- 为什么调试器引发"read access violation. this was nullptr"异常?
- 删除分配的 (?) 指针时"Pointer being freed was not allocated"
- 向unordered_map添加unique_ptr时'this was nullptr'
- 类中的数组变量C++导致"was not declared in this scope"实现文件的一个函数中错误,但在构造函数中不会导致错误
- 无法让 Assimp 在 Windows " linker problem" 上运行?(与2019年相比)
- 函数 AfxEndThread 中的读取访问冲突"pThread-> was nullptr"
- Visual C++ /MANIFESTUAC linker 选项不起作用
- 如何解决"cout was not declared in this scope"错误?
- CMake target_link_options LINKER syntax
- Apple Mach-O linker 错误使用 JUCE 和重型编译器
- C++ libtins "An invalid handle was specified"
- 为什么程序显示我"was not declared in this scope"?
- 为什么我会收到"getuid was not declared in that scope"错误?
- 为什么我会收到此警告? "Member 'x' was not initialized in this constructor"
- 即使包含 <time.h 后仍"‘CLOCK_PER_SEC’ was not declared in this scope"错误>
- NDK r16b 独立工具链错误:"/usr/bin/ld: this linker was not configured to use sysroots"