Hello, for a school project I need to use fmod (mp3 music player)
I tried to type a few lines of code, but I have an error.
“Undefined symbols for architecture arm64:
“_FMOD_System_Create”, referenced from:
_main in main-b18886.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)”
FMOD is it compatible with arm64 ?
FMOD is compatible with arm64, the linker error indicates that you haven’t linked a required library. Are you on Windows/Visual Studio or some other platform?
Im using Visual Studio Code on macOS, do you know how i can link the library with Visual Studio Code, i didnt figure it out so i’m using CodeBlocks by far…
So you are just compiling with the command line then? e.g
clang++ main.cpp -o main
If so, you need to link your libs using the
rpath link command. Assuming all your libs and headers are in the one directory that would be:
clang++ main.cpp -o main libfmod.dylib -rpath @executable_path