# Failing to link wasm libs when shared memory flags are used

**URL:** <https://qa.fmod.com/t/failing-to-link-wasm-libs-when-shared-memory-flags-are-used/19370>\
**Category:** FMOD Engine\
**Created:** [October 6, 2022, 8:11am UTC](https://qa.fmod.com/t/failing-to-link-wasm-libs-when-shared-memory-flags-are-used/19370 "2022-10-06T08:11:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom\_brightstar](https://avatars.discourse-cdn.com/v4/letter/t/7ab992/32.png) [@tom\_brightstar](https://qa.fmod.com/u/tom_brightstar)\
**Post date:** [October 6, 2022, 8:11am UTC](https://qa.fmod.com/t/failing-to-link-wasm-libs-when-shared-memory-flags-are-used/19370/1 "2022-10-06T08:11:22Z")

</div>

We’re attempting to evaluate FMOD for our game which is written in C++, but is compiled for the browser. Our game makes use of multi threading and shared memory in the browser, which requires us to enable certain flags. When I try and link fmod\_wasm.a I get the following error:

wasm-ld: error: --shared-memory is disallowed by fmod\_file.o because it was not compiled with ‘atomics’ or ‘bulk-memory’ features.

Is there any way to solve this problem? Are you able to provide an additional static library that enables shared memory? We understand that on the premium plan we can purchase source, which is something we would consider if our evaluation is successful, but we can’t justify the purchase if we don’t know if FMOD is the right solution for us.

---

<div class="post-metadata">

**Author:** ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)\
**Post date:** [October 7, 2022, 5:07am UTC](https://qa.fmod.com/t/failing-to-link-wasm-libs-when-shared-memory-flags-are-used/19370/2 "2022-10-07T05:07:29Z")

</div>

As you’ve discovered, FMOD is built without the multithread flags, it’s something we investigated a while back, but browser support wasn’t great. Unfortunately, we do not have a build available that meets your requirements and while a source license would give you control to adjust that we cannot provide any guarantees about compatibility at this stage.
