# Error with Mac arm64

**URL:** <https://qa.fmod.com/t/error-with-mac-arm64/18637>\
**Category:** FMOD Engine\
**Created:** [April 9, 2022, 7:00am UTC](https://qa.fmod.com/t/error-with-mac-arm64/18637 "2022-04-09T07:00:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![superneiluj](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@superneiluj](https://qa.fmod.com/u/superneiluj)\
**Post date:** [April 9, 2022, 7:00am UTC](https://qa.fmod.com/t/error-with-mac-arm64/18637/1 "2022-04-09T07:00:36Z")

</div>

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 ?

Thanks

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [April 13, 2022, 2:48am UTC](https://qa.fmod.com/t/error-with-mac-arm64/18637/2 "2022-04-13T02:48:41Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![superneiluj](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@superneiluj](https://qa.fmod.com/u/superneiluj)\
**Post date:** [April 13, 2022, 8:09am UTC](https://qa.fmod.com/t/error-with-mac-arm64/18637/3 "2022-04-13T08:09:33Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [April 14, 2022, 1:53am UTC](https://qa.fmod.com/t/error-with-mac-arm64/18637/4 "2022-04-14T01:53:39Z")

</div>

So you are just compiling with the command line then? e.g

```auto
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:

```auto
clang++ main.cpp -o main libfmod.dylib -rpath @executable_path

```
