Answered
0
0

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?

  • You must to post comments
Best Answer
0
0

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.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.