# Links work debug but not release - need help confirming what I messed up

**URL:** <https://qa.fmod.com/t/links-work-debug-but-not-release-need-help-confirming-what-i-messed-up/16328>\
**Category:** FMOD Engine\
**Tags:** windows\
**Created:** [October 20, 2020, 10:08pm UTC](https://qa.fmod.com/t/links-work-debug-but-not-release-need-help-confirming-what-i-messed-up/16328 "2020-10-20T22:08:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![au123a](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@au123a](https://qa.fmod.com/u/au123a)\
**Post date:** [October 20, 2020, 10:08pm UTC](https://qa.fmod.com/t/links-work-debug-but-not-release-need-help-confirming-what-i-messed-up/16328/1 "2020-10-20T22:08:15Z")

</div>

Hi all  
I have FMOD low level running perfectly in DEBUG x86 using fmodL\_vc.lib & fmodstudioL\_vc.lib.

I switch to RELEASE x86 - I have the files linked fmodL.dll &fmodstudioL\_vc.lib

Then I get this error  
1\>------ Build started: Project: xxxxxxxx, Configuration: Release Win32 ------  
1\>\FMOD\lib\fmodL64.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x338

I’m sure it is something easy to fix - I am just not sure what exactly.

All help is appreciated - thanks in advance!

---

<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 21, 2020, 5:14am UTC](https://qa.fmod.com/t/links-work-debug-but-not-release-need-help-confirming-what-i-messed-up/16328/2 "2020-10-21T05:14:43Z")

</div>

You mention you are linking fmodL.dll and fmodstudioL\_vc.lib, should that not be fmodL\_vc.lib and fmodstudioL\_vc.lib?

Also, in case it’s relevant, what version are you on?

---

<div class="post-metadata">

**Author:** ![au123a](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@au123a](https://qa.fmod.com/u/au123a)\
**Post date:** [October 21, 2020, 9:43am UTC](https://qa.fmod.com/t/links-work-debug-but-not-release-need-help-confirming-what-i-messed-up/16328/3 "2020-10-21T09:43:11Z")

</div>

I tried that I still get

1\>LINK : fatal error LNK1181: cannot open input file ‘fmodstudioL\_vc.lib’

If I remove fmodstudioL\_vc.lib & only use fmodL\_vc.lib -  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/4/4168999c343a5a1b70b34a3919ca7c669a35ed47.png)

Version 2/8/19 1.10.15 - Studio API minor release (build 103907)

Thoughts?

---

<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 21, 2020, 11:05pm UTC](https://qa.fmod.com/t/links-work-debug-but-not-release-need-help-confirming-what-i-messed-up/16328/4 "2020-10-21T23:05:13Z")

</div>

Have you looked at our examples to compare to what you are doing?

The DLL needs to be copied to the application directory (next to the exe) so the app can find it at runtime.

---

<div class="post-metadata">

**Author:** ![au123a](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@au123a](https://qa.fmod.com/u/au123a)\
**Post date:** [October 22, 2020, 10:41am UTC](https://qa.fmod.com/t/links-work-debug-but-not-release-need-help-confirming-what-i-messed-up/16328/5 "2020-10-22T10:41:20Z")

</div>

I deleted them and re-copied to the /release/ build folder - worked 🙂 thanks

must have been a corrupt file :=|
