# Error trying to use fmod in visual studio

**URL:** https://qa.fmod.com/t/error-trying-to-use-fmod-in-visual-studio/12681
**Category:** FMOD Engine
**Created:** [September 6, 2016, 6:01pm UTC](https://qa.fmod.com/t/error-trying-to-use-fmod-in-visual-studio/12681 "2016-09-06T18:01:23Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![CipheredData](https://avatars.discourse-cdn.com/v4/letter/c/db5fbb/32.png) [@CipheredData](https://qa.fmod.com/u/CipheredData)
#### Post date: [September 6, 2016, 6:01pm UTC](https://qa.fmod.com/t/error-trying-to-use-fmod-in-visual-studio/12681/1 "2016-09-06T18:01:23Z")

</div>

I’m trying to implement the play\_sound into my own visual studio project. I couldn’t get it to work, so I copied the code directly from the example into my project. Setup the include directories. However I get the following errors, when trying to build the project.

> 1\>main.obj : error LNK2019: unresolved external symbol “void \_\_cdecl Common\_Fatal(char const \*,…)” (?Common\_Fatal@@YAXPEBDZZ) referenced in function SDL\_main  
> 1\>main.obj : error LNK2019: unresolved external symbol “void \_\_cdecl ERRCHECK\_fn(enum FMOD\_RESULT,char const \*,int)” (?ERRCHECK\_fn@@YAXW4FMOD\_RESULT@@PEBDH@Z) referenced in function SDL\_main  
> 1\>main.obj : error LNK2019: unresolved external symbol “void \_\_cdecl Common\_Init(void \* \*)” (?Common\_Init@@YAXPEAPEAX@Z) referenced in function SDL\_main  
> 1\>main.obj : error LNK2019: unresolved external symbol “void \_\_cdecl Common\_Update(void)” (?Common\_Update@@YAXXZ) referenced in function SDL\_main  
> 1\>main.obj : error LNK2019: unresolved external symbol “void \_\_cdecl Common\_Exit(int)” (?Common\_Exit@@YAXH@Z) referenced in function SDL\_main  
> 1\>main.obj : error LNK2019: unresolved external symbol “bool \_\_cdecl Common\_BtnPress(enum Common\_Button)” (?Common\_BtnPress@@YA\_NW4Common\_Button@@@Z) referenced in function SDL\_main

Any ideas why this is happening?

---

<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: [September 6, 2016, 9:40pm UTC](https://qa.fmod.com/t/error-trying-to-use-fmod-in-visual-studio/12681/2 "2016-09-06T21:40:04Z")

</div>

Functions prefixed with “Common” are part of our example framework and not part of FMOD itself. This code is added to the examples via common.cpp and common\_platform.cpp. Developers would usually replace this code with their own application code.

---

<div class="post-metadata">

### Author: ![CipheredData](https://avatars.discourse-cdn.com/v4/letter/c/db5fbb/32.png) [@CipheredData](https://qa.fmod.com/u/CipheredData)
#### Post date: [September 6, 2016, 11:53pm UTC](https://qa.fmod.com/t/error-trying-to-use-fmod-in-visual-studio/12681/3 "2016-09-06T23:53:03Z")

</div>

> [@](#):
>
> Functions prefixed with “Common” are part of our example framework and not part of FMOD itself. This code is added to the examples via common.cpp and common\_platform.cpp. Developers would usually replace this code with their own application code.

Oh, that makes sense, thanks.

---

<div class="post-metadata">

### Author: ![khussain](https://avatars.discourse-cdn.com/v4/letter/k/f04885/32.png) [@khussain](https://qa.fmod.com/u/khussain)
#### Post date: [November 20, 2019, 4:57am UTC](https://qa.fmod.com/t/error-trying-to-use-fmod-in-visual-studio/12681/4 "2019-11-20T04:57:25Z")

</div>

Sorry to revive a dead topic, but would there be a way to use the common.cpp and common\_platform.cpp for my project? I don’t have my own application code to use right now.

---

<div class="post-metadata">

### Author: ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)
#### Post date: [November 26, 2019, 12:02am UTC](https://qa.fmod.com/t/error-trying-to-use-fmod-in-visual-studio/12681/5 "2019-11-26T00:02:33Z")

</div>

These files are included with the FMOD API download, in the examples projects.

---

<div class="post-metadata">

### Author: ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)
#### Post date: [November 26, 2019, 12:02am UTC](https://qa.fmod.com/t/error-trying-to-use-fmod-in-visual-studio/12681/6 "2019-11-26T00:02:37Z")

</div>


