c++ Android Studio -本机库SDL_mixer的链接器错误

lstz6jyr  于 2023-02-26  发布在  Android
关注(0)|答案(1)|浏览(233)

当我试图构建我的项目时,我现在得到错误。我没有改变任何东西,我的印象是,它确实是几年前构建的。你能帮忙吗?
错误消息为:

C/C++: ld: error: C:\Users\gf\Documents\GLBasic\TwinTris\distribute\android_studio\app\build\intermediates\cxx\Debug\5e641jm3/obj/local/arm64-v8a/objs-debug/main/glbasic/lib_glbasic.o: unable to find library from dependent library specifier: SDL.lib
C/C++: ld: error: C:\Users\gf\Documents\GLBasic\TwinTris\distribute\android_studio\app\build\intermediates\cxx\Debug\5e641jm3/obj/local/arm64-v8a/objs-debug/main/glbasic/lib_glbasic.o: unable to find library from dependent library specifier: SDL_mixer.lib
C/C++: ld: error: C:\Users\gf\Documents\GLBasic\TwinTris\distribute\android_studio\app\build\intermediates\cxx\Debug\5e641jm3/obj/local/arm64-v8a/objs-debug/main/glbasic/lib_glbasic.o: unable to find library from dependent library specifier: SDLmain.lib
C/C++: ld: error: C:\Users\gf\Documents\GLBasic\TwinTris\distribute\android_studio\app\build\intermediates\cxx\Debug\5e641jm3/obj/local/arm64-v8a/objs-debug/main/glbasic/lib_glbasic.o: unable to find library from dependent library specifier: SDL_mixer.lib
C/C++: clang++: error: linker command failed with exit code 1 (use -v to see invocation)
C/C++: make: *** [C:/Users/gf/AppData/Local/Android/Sdk/ndk/23.1.7779620/build//../build/core/build-binary.mk:715: C:\Users\gf\Documents\GLBasic\TwinTris\distribute\android_studio\app\build\intermediates\cxx\Debug\5e641jm3/obj/local/arm64-v8a/libmain.so] Error 1
C/C++: ld: error: C:\Users\gf\Documents\GLBasic\TwinTris\distribute\android_studio\app\build\intermediates\cxx\Debug\5e641jm3/obj/local/arm64-v8a/objs-debug/main/glbasic/lib_glbasic.o: unable to find library from dependent library specifier: SDL_mixer.lib

您可以在以下位置找到该项目:https://www.glbasic.com/beta/twintris_as.7z

6ojccjat

6ojccjat1#

看起来好像你需要告诉编译器在哪里可以找到SDL库。你可以按照这里的建议去做:Linking errors with SDL_mixer library
您需要确保这些lib库也位于编译器可以找到的位置。

相关问题