0
0

Hi,

I can’t get the 3D2 example to link probably. I think my problem is a little different from what other ppl have posted. I have the appropiate lib but I still get the following errors:

LINK : error LNK2001: unresolved external symbol WinMainCRTStartup
main.obj : error LNK2019: unresolved external symbol “void cdecl gx_End(void)” (?gx_End@@YAXXZ) referenced in function WinMain
main.obj : error LNK2019: unresolved external symbol “void __cdecl spr_Free(struct _ImageSprite *)” (?spr_Free@@YAXPAU_ImageSprite@@@Z) referenced in function WinMain
main.obj : error LNK2019: unresolved external symbol “void __cdecl FreeImage(struct Image *)” (?FreeImage@@YAXPAUImage@@@Z) referenced in function WinMain
main.obj : error LNK2019: unresolved external symbol “void __cdecl but_Free(struct _Button *)” (?but_Free@@YAXPAU_Button@@@Z) referenced in function WinMain
main.obj : error LNK2019: unresolved external symbol “void __cdecl gx_Update(void)” (?gx_Update@@YAXXZ) referenced in function WinMain
main.obj : error LNK2019: unresolved external symbol “void __cdecl spr_UpdateAll(void)” (?spr_UpdateAll@@YAXXZ) referenced in function WinMain
main.obj : error LNK2019: unresolved external symbol “struct _Button * __cdecl but_Create(int,int,int,int,int,void (__cdecl*)(void))” (?but_Create@@YAPAU_Button@@HHHHHP6AXXZ@Z) referenced in function WinMain
main.obj : error LNK2019: unresolved external symbol “struct _ImageSprite * __cdecl spr_Create(unsigned short *,int,int)” (?spr_Create@@YAPAU_ImageSprite@@PAGHH@Z) referenced in function WinMain
main.obj : error LNK2019: unresolved external symbol “void __cdecl BlitImage(struct Image *,int,int)” (?BlitImage@@YAXPAUImage@@HH@Z) referenced in function WinMain
main.obj : error LNK2019: unresolved external symbol “struct Image * __cdecl LoadBmp(unsigned short *)” (?LoadBmp@@YAPAUImage@@PAG@Z) referenced in function WinMain
main.obj : error LNK2019: unresolved external symbol “void __cdecl gx_Init(void)” (?gx_Init@@YAXXZ) referenced in function WinMain
main.obj : error LNK2019: unresolved external symbol “void __cdecl but_LBUTTONDOWN(int,int)” (?but_LBUTTONDOWN@@YAXHH@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 “void cdecl spr_SetPos(struct _ImageSprite *,int,int)” (?spr_SetPos@@YAXPAU_ImageSprite@@HH@Z) referenced in function “long __cdecl WndProc(struct HWND *,unsigned int,unsigned int,long)” (?Wnd
Proc@@YAJPAUHWND__@@IIJ@Z)
main.obj : error LNK2019: unresolved external symbol “void cdecl gx_SETFOCUS(void)” (?gx_SETFOCUS@@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 “void cdecl gx_KILLFOCUS(void)” (?gx_KILLFOCUS@@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 “struct Image vbuf” (?vbuf@@3UImage@@A) referenced in function “void __cdecl Update(void)” (?Update@@YAXXZ)
ARMV4Rel/spec.exe : fatal error LNK1120: 17 unresolved externals
Error executing link.exe.

spec.exe – 18 error(s), 0 warning(s)

Please help, I’ve spent hours trying to figure it out.

Thanks

  • You must to post comments
0
0

Those symbols don’t look like they belong to fmod. You are probably not linking to one of the other libs that you are using.

  • You must to post comments
0
0

wow, thanks for getting back to me so quickly.

All the unresolved symbols are functions declared in common.h and written in common.cpp. For some reasonn it’s not recognizing them.
Just to confirm what libraries and dll are required to run the 3d2 example?? Do I need to include gx.lib anywhere and where should the gx.dll go.

Thanks,
whoopi

  • You must to post comments
0
0

I’ve tried starting the code from scratch i.e created a new workspace and used the original files downloaded. I get this error on compilation:

error C2664: ‘FSOUND_DSP_Create’ : cannot convert parameter 1 from ‘void *(__cdecl *)(void *,void *,int,int)’ to ‘void *(__cdecl *)(void *,v
oid *,int,void *)’
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
common.cpp
Error executing clarm.exe.

I got this error and fixed it by redefining the function oscCallback to void void int void. the error went away but then I got the unresolved symbols error listed in my first posting.

Any suggestions ???

  • You must to post comments
0
0

Hi whoopi,

Did you get an answer to the link problem. I have exactly the situation, I seem to have performed the same steps that you have (new project etc..) however I commented out the compilation error due to mismatch in types.

I have only been using (and being aware of ) FMOD for less than 24 hrs so I am pretty new to this, but I am pretty sure that the unresolved errors are because the gx.lib library is not being linked into the exe.

Has anyone else any ideas on this problem

Thanks
John

  • You must to post comments
0
0

You need to link with fmodce.lib, gx.lib and aygshell.lib. Also, make sure common.cpp is included in your project. If it still doesn’t work then it must be something to do with how you’re creating your new project – make sure it’s the right project type for the device you’re targetting etc.

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.