0
0

I just downloaded the fmod version for windows ce to test it on windows CE 4.2. I tryed to compile the samples with eMbedded Visual C++ 4.0 and get all the fmod functions as undefined

fmodsamplece.obj : error LNK2019: unresolved external symbol _FMUSIC_SetPanSeperation referenced in function “void cdecl LoadSong(struct HWND *)” (?LoadSong@@YAXPAUHWND__@@@Z)
fmodsamplece.obj : error LNK2019: unresolved external symbol _FMUSIC_SetMasterVolume referenced in function “void cdecl LoadSong(struct HWND *)” (?LoadSong@@YAXPAUHWND__@@@Z)
fmodsamplece.obj : error LNK2019: unresolved external symbol _FMUSIC_GetType referenced in function “void cdecl LoadSong(struct HWND *)” (?LoadSong@@YAXPAUHWND__@@@Z)
fmodsamplece.obj : error LNK2019: unresolved external symbol _FSOUND_GetError referenced in function “void cdecl LoadSong(struct HWND *)” (?LoadSong@@YAXPAUHWND__@@@Z)
fmodsamplece.obj : error LNK2019: unresolved external symbol _FSOUND_Stream_OpenFile referenced in function “void cdecl LoadSong(struct HWND *)” (?LoadSong@@YAXPAUHWND__@@@Z)
fmodsamplece.obj : error LNK2019: unresolved external symbol _FMUSIC_LoadSong referenced in function “void cdecl LoadSong(struct HWND *)” (?LoadSong@@YAXPAUHWND__@@@Z)
fmodsamplece.obj : error LNK2019: unresolved external symbol _FSOUND_Stream_Play referenced in function “long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)” (?WndProc@@YAJPAUHWND__@@IIJ@Z)
fmodsamplece.obj : error LNK2019: unresolved external symbol _FMUSIC_PlaySong referenced in function “long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)” (?WndProc@@YAJPAUHWND__@@IIJ@Z)
fmodsamplece.obj : error LNK2019: unresolved external symbol _FSOUND_SetPaused referenced in function “long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)” (?WndProc@@YAJPAUHWND__@@IIJ@Z)
fmodsamplece.obj : error LNK2019: unresolved external symbol _FSOUND_GetPaused referenced in function “long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)” (?WndProc@@YAJPAUHWND__@@IIJ@Z)
fmodsamplece.obj : error LNK2019: unresolved external symbol _FMUSIC_SetPaused referenced in function “long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)” (?WndProc@@YAJPAUHWND__@@IIJ@Z)
fmodsamplece.obj : error LNK2019: unresolved external symbol _FMUSIC_GetPaused referenced in function “long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)” (?WndProc@@YAJPAUHWND__@@IIJ@Z)
fmodsamplece.obj : error LNK2019: unresolved external symbol _FSOUND_Close referenced in function “long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)” (?WndProc@@YAJPAUHWND__@@IIJ@Z)
fmodsamplece.obj : error LNK2019: unresolved external symbol _FSOUND_Stream_Close referenced in function “long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)” (?WndProc@@YAJPAUHWND__@@IIJ@Z)
fmodsamplece.obj : error LNK2019: unresolved external symbol _FMUSIC_FreeSong referenced in function “long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)” (?WndProc@@YAJPAUHWND__@@IIJ@Z)
fmodsamplece.obj : error LNK2019: unresolved external symbol _FSOUND_Init referenced in function “long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)” (?WndProc@@YAJPAUHWND__@@IIJ@Z)
fmodsamplece.obj : error LNK2019: unresolved external symbol _FSOUND_SetBufferSize referenced in function “long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)” (?WndProc@@YAJPAUHWND__@@IIJ@Z)
fmodsamplece.obj : error LNK2019: unresolved external symbol _FSOUND_GetChannelsPlaying referenced in function “long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)” (?WndProc@@YAJPAUHWND__@@IIJ@Z)
fmodsamplece.obj : error LNK2019: unresolved external symbol _FSOUND_GetCPUUsage referenced in function “long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)” (?WndProc@@YAJPAUHWND__@@IIJ@Z)

  • You must to post comments
0
0

I have these same problems with embedded c++ 4.0:

Ok let me tell what I did step by step just to check:
created a blank project
added main.cpp from samples\record to the project
added record.rc, resource.h, and newres.h to the project from samples/record again
added fmodce.lib from \api\wce4\armv4 (or \api\wce4\emuv4, doesn’t make a difference considering error)
changed the project settings, and from linker\input, i typed fmodce.lib

from program options\directories added these include file directories:
D:\FMODAPI375CE\API\INC

from program options\directories added these library directories:
D:\FMODAPI375CE\API\WCE4\EMUV4

from program options\directories added these source file directories:
D:\FMODAPI375CE\SAMPLES\RECORD (I just want to test the record.cpp file)

from program options\directories added these executable file directories:
D:\FMODAPI375CE\API\WCE4\EMUV4

Linking…
main.obj : error LNK2019: unresolved external symbol "int cdecl Common_InitInstance(int)" (?Common_InitInstance@@YAHH@Z) referenced in function WinMain
main.obj : error LNK2001: unresolved external symbol "struct HINSTANCE
* hInst" (?hInst@@3PAUHINSTANCE__@@A)
main.obj : error LNK2019: unresolved external symbol "int cdecl Common_WM_CLOSE(struct HWND *)" (?Common_WM_CLOSE@@YAHPAUHWND__@@@Z) referenced in function "long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)" (?WndProc@@YAJPAUH
WND__@@IIJ@Z)
main.obj : error LNK2019: unresolved external symbol FSOUND_Close referenced in function "long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)" (?WndProc@@YAJPAUHWND__@@IIJ@Z)
main.obj : error LNK2019: unresolved external symbol FSOUND_Sample_Free referenced in function "long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)" (?WndProc@@YAJPAUHWND__@@IIJ@Z)
main.obj : error LNK2019: unresolved external symbol FSOUND_GetCurrentPosition referenced in function "long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)" (?WndProc@@YAJPAUHWND__@@IIJ@Z)
main.obj : error LNK2019: unresolved external symbol "int cdecl Common_Printf(struct HDC *,struct tagRECT *,char *,…)" (?Common_Printf@@YAHPAUHDC__@@PAUtagRECT@@PADZZ) referenced in function "long cdecl WndProc(struct HWND *,unsigned int,u
nsigned int,long)" (?WndProc@@YAJPAUHWND__@@IIJ@Z)
main.obj : error LNK2019: unresolved external symbol FSOUND_Record_GetPosition referenced in function "long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)" (?WndProc@@YAJPAUHWND__@@IIJ@Z)
main.obj : error LNK2019: unresolved external symbol FSOUND_Sample_GetLength referenced in function "long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)" (?WndProc@@YAJPAUHWND__@@IIJ@Z)
main.obj : error LNK2019: unresolved external symbol "void cdecl Common_SetTextY(int)" (?Common_SetTextY@@YAXH@Z) referenced in function "long __cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)" (?WndProc@@YAJPAUHWND__@@IIJ@Z)
main.obj : error LNK2019: unresolved external symbol "int cdecl Common_WM_TIMER(struct HWND *)" (?Common_WM_TIMER@@YAHPAUHWND__@@@Z) referenced in function "long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)" (?WndProc@@YAJPAUH
WND__@@IIJ@Z)
main.obj : error LNK2019: unresolved external symbol FSOUND_PlaySound referenced in function "long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)" (?WndProc@@YAJPAUHWND__@@IIJ@Z)
main.obj : error LNK2019: unresolved external symbol FSOUND_Record_Stop referenced in function "long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)" (?WndProc@@YAJPAUHWND__@@IIJ@Z)
main.obj : error LNK2019: unresolved external symbol FSOUND_Record_StartSample referenced in function "long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)" (?WndProc@@YAJPAUHWND__@@IIJ@Z)
main.obj : error LNK2019: unresolved external symbol "void cdecl Common_About(struct HWND *)" (?Common_About@@YAXPAUHWND__@@@Z) referenced in function "long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)" (?WndProc@@YAJPAUHWND__
@@IIJ@Z)
main.obj : error LNK2019: unresolved external symbol "struct HWND__ * cdecl Common_CreateButton(struct HWND *,unsigned short *,int,int,int,int,int)" (?Common_CreateButton@@YAPAUHWND__@@PAU1@PAGHHHHH@Z) referenced in function "long cdecl WndPro
c(struct HWND
*,unsigned int,unsigned int,long)" (?WndProc@@YAJPAUHWND__@@IIJ@Z)
main.obj : error LNK2019: unresolved external symbol "int cdecl Common_GetButtonHeight(struct HWND *)" (?Common_GetButtonHeight@@YAHPAUHWND__@@@Z) referenced in function "long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)" (?Wn
dProc@@YAJPAUHWND__@@IIJ@Z)
main.obj : error LNK2019: unresolved external symbol FSOUND_Sample_Alloc referenced in function "long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)" (?WndProc@@YAJPAUHWND__@@IIJ@Z)
main.obj : error LNK2019: unresolved external symbol "void cdecl Common_DisplayError(void)" (?Common_DisplayError@@YAXXZ) referenced in function "long __cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)" (?WndProc@@YAJPAUHWND__@@IIJ@Z)
main.obj : error LNK2019: unresolved external symbol FSOUND_Init referenced in function "long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)" (?WndProc@@YAJPAUHWND__@@IIJ@Z)
main.obj : error LNK2019: unresolved external symbol "int cdecl Common_WM_CREATE(struct HWND *)" (?Common_WM_CREATE@@YAHPAUHWND__@@@Z) referenced in function "long cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)" (?WndProc@@YAJPA
UHWND__@@IIJ@Z)
MIPSII_FPDbg/deneme.exe : fatal error LNK1120: 21 unresolved externals
Error executing link.exe

I tried to link fmodvc.lib and the different fmodce.lib files, but these errors continue to pop up. Which library/libraries should I link to get rid of these errors or what should I do? thanks…

  • You must to post comments
0
0

after linking both fmodce.lib and fmodvc.lib the linking errors reduced to 12:

main.obj : error LNK2019: unresolved external symbol "int cdecl Common_InitInstance(int)" (?Common_InitInstance@@YAHH@Z) referenced in function WinMain
main.obj : error LNK2019: unresolved external symbol "struct HINSTANCE
* hInst" (?hInst@@3PAUHINSTANCE__@@A) referenced in function WinMain
main.obj : error LNK2019: unresolved external symbol "void cdecl Common_About(struct HWND *)" (?Common_About@@YAXPAUHWND__@@@Z) referenced in function WndProc
main.obj : error LNK2019: unresolved external symbol "int cdecl Common_WM_TIMER(struct HWND *)" (?Common_WM_TIMER@@YAHPAUHWND__@@@Z) referenced in function WndProc
main.obj : error LNK2019: unresolved external symbol "int cdecl Common_WM_CLOSE(struct HWND *)" (?Common_WM_CLOSE@@YAHPAUHWND__@@@Z) referenced in function WndProc
main.obj : error LNK2019: unresolved external symbol "struct HWND__ * cdecl Common_CreateButton(struct HWND *,unsigned short *,int,int,int,int,int)" (?Common_CreateButton@@YAPAUHWND__@@PAU1@PAGHHHHH@Z) referenced in function WndProc
main.obj : error LNK2019: unresolved external symbol "int cdecl Common_GetButtonHeight(struct HWND *)" (?Common_GetButtonHeight@@YAHPAUHWND__@@@Z) referenced in function WndProc
main.obj : error LNK2019: unresolved external symbol "void cdecl Common_DisplayError(void)" (?Common_DisplayError@@YAXXZ) referenced in function WndProc
main.obj : error LNK2019: unresolved external symbol "int __cdecl Common_WM_CREATE(struct HWND
*)" (?Common_WM_CREATE@@YAHPAUHWND__@@@Z) referenced in function WndProc
main.obj : error LNK2019: unresolved external symbol "int cdecl Common_Printf(struct HDC *,struct tagRECT *,char *,…)" (?Common_Printf@@YAHPAUHDC__@@PAUtagRECT@@PADZZ) referenced in function WndProc
main.obj : error LNK2019: unresolved external symbol "void __cdecl Common_SetTextY(int)" (?Common_SetTextY@@YAXH@Z) referenced in function WndProc
ARMV4Rel/testx.exe : fatal error LNK1120: 11 unresolved externals

  • You must to post comments
0
0

From the project settings every thing is the same. _WIN32_WCE is defined. Ithink the problem is that a linktime it searches for a methode like _FMUSIC_SetPanSeperation but in the lib it is defined as _FMUSIC_SetPanSeperation@4

  • You must to post comments
0
0

if you’re using common functions then you would need to add common.cpp

  • You must to post comments
0
0

Hello, I have the same problem. I try with one underscore, 2 underscores and no underscores for ·define F_API … and the problem persists.

Any other idea?

  • You must to post comments
0
0

problem solved, I was also adding these, and their bottom lines to the main.cpp to check, now I removed them and it build up. Thanks !

ifdef __cplusplus

extern "C" {

endif

  • You must to post comments
0
0

I tried again with cdecl, _cdecl & __cdecl and the response remains the same:

player.obj : error LNK2019: unresolved external symbol _FSOUND_Stream_Play referenced in function “int __cdecl PlayOther(void)” (?PlayOther@@YAHXZ)

Let me ask something: it is possible that the lib or dll needs to be recompiled for wce4.2?

I’m using EVC++ 4.0 to make an application for Pocket PC 2003 (wce4.2) and may be the problem is there.

  • You must to post comments
0
0

yeah, you’re right. So… I’ll be waiting for you…

thanks a lot.

  • You must to post comments
0
0

Try to use :

[code:190vt00h]
// your includes
...

ifdef __cplusplus

extern "C" {

endif

// Your code
...

// End of your code

ifdef __cplusplus

}

endif

[/code:190vt00h]

  • You must to post comments
0
0

the same problem… any one has tested in evc++ 4.0?

  • You must to post comments
0
0

incredible!!! well, the solution arrive and fmod is working great!…

thanks

  • You must to post comments
0
0

I am getting the same error (the first error) with eVC4 and PPC2003. Has this been corrected with the newest version of fmodCE?

What I have done is I have renamed the API\WSE4 directory to API\WSE. That should be what is needed for compiling, right?

Or does anybody have recreated the examples for eVC4?

  • You must to post comments
0
0

Thanx. With a little help from a friend, I figured out how to do just that.

(Sorry, I am a Delphi programmer, that liked the ease of use of FMod in Delphi, and wanted to try it out on my Pocket PC)

  • You must to post comments
Showing 13 results
Your Answer

Please first to submit.