LNK2019 with Visual C++

I’m trying to build the generate_tone example, in the Visual Studio 2015 IDE, but inexorably I only obtain a lot of LNK2019 errors by the compiler. I’ve read of this issue in many forums, but none of the solutions proposed seems to work. I’m quite desperate, because FMOD seems to be a great tool, but I can’t use it for some reason I cannot decipher. Please someone help me!!!

What version of FMOD are you using?

The last one: 1.09.01

I’m not having any issues building the examples. Could you please paste the error message from Visual Studio here, it should help pin point the issue.

Errore LNK2019 riferimento al simbolo esterno “void __cdecl Common_Fatal(char const *,…)” (?Common_Fatal@@YAXPBDZZ) non risolto nella funzione _main Progetto1 C:\Users\Claudio\documents\visual studio 2015\Projects\Progetto1\Progetto1\Origine.obj 1

Errore LNK2019 riferimento al simbolo esterno “void __cdecl Common_Draw(char const *,…)” (?Common_Draw@@YAXPBDZZ) non risolto nella funzione _main Progetto1 C:\Users\Claudio\documents\visual studio 2015\Projects\Progetto1\Progetto1\Origine.obj 1

Errore LNK2019 riferimento al simbolo esterno “void __cdecl ERRCHECK_fn(enum FMOD_RESULT,char const *,int)” (?ERRCHECK_fn@@YAXW4FMOD_RESULT@@PBDH@Z) non risolto nella funzione _main Progetto1 C:\Users\Claudio\documents\visual studio 2015\Projects\Progetto1\Progetto1\Origine.obj 1

Errore LNK2019 riferimento al simbolo esterno “void __cdecl Common_Init(void * *)” (?Common_Init@@YAXPAPAX@Z) non risolto nella funzione _main Progetto1 C:\Users\Claudio\documents\visual studio 2015\Projects\Progetto1\Progetto1\Origine.obj 1

Errore LNK2019 riferimento al simbolo esterno “void __cdecl Common_Close(void)” (?Common_Close@@YAXXZ) non risolto nella funzione _main Progetto1 C:\Users\Claudio\documents\visual studio 2015\Projects\Progetto1\Progetto1\Origine.obj 1

Errore LNK2019 riferimento al simbolo esterno “void __cdecl Common_Update(void)” (?Common_Update@@YAXXZ) non risolto nella funzione _main Progetto1 C:\Users\Claudio\documents\visual studio 2015\Projects\Progetto1\Progetto1\Origine.obj 1

Errore LNK2019 riferimento al simbolo esterno “void __cdecl Common_Sleep(unsigned int)” (?Common_Sleep@@YAXI@Z) non risolto nella funzione _main Progetto1 C:\Users\Claudio\documents\visual studio 2015\Projects\Progetto1\Progetto1\Origine.obj 1

Errore LNK2019 riferimento al simbolo esterno “bool __cdecl Common_BtnPress(enum Common_Button)” (?Common_BtnPress@@YA_NW4Common_Button@@@Z) non risolto nella funzione _main Progetto1 C:\Users\Claudio\documents\visual studio 2015\Projects\Progetto1\Progetto1\Origine.obj 1

Errore LNK2019 riferimento al simbolo esterno “bool __cdecl Common_BtnDown(enum Common_Button)” (?Common_BtnDown@@YA_NW4Common_Button@@@Z) non risolto nella funzione _main Progetto1 C:\Users\Claudio\documents\visual studio 2015\Projects\Progetto1\Progetto1\Origine.obj 1

Errore LNK2019 riferimento al simbolo esterno “char const * __cdecl Common_BtnStr(enum Common_Button)” (?Common_BtnStr@@YAPBDW4Common_Button@@@Z) non risolto nella funzione _main Progetto1 C:\Users\Claudio\documents\visual studio 2015\Projects\Progetto1\Progetto1\Origine.obj 1

Avviso LNK4272 il tipo ‘x64’ del computer della libreria è in conflitto con il tipo ‘X86’ del computer di destinazione Progetto1 C:\Users\Claudio\documents\visual studio 2015\Projects\Progetto1\Progetto1\fmod64_vc.lib 1

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.

Ok, but (I’m not a professional programmer) what should I do to make the examples work? Thanks, really, for your help…

Anywhere there is a function with Common in the name, it will need to be removed. (eg. Common_Fatal, Common_Draw, Common_Init) These are used and self contained in the individual example projects.