PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

errors

--------------------Configuration: EasyCE - Win32 (WCE ARM) Release--------------------
C:\Program Files\Microsoft eMbedded Tools\Common\EVC\MyProjects\game\EasyCE.cpp(14): Could not find the file ptc.h.
Linking...
EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl GXCloseDisplay(void)" (__imp_?GXCloseDisplay@@YAHXZ) referenced in function WinMain
EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl GXCloseInput(void)" (__imp_?GXCloseInput@@YAHXZ) referenced in function WinMain
EasyCE.obj : error LNK2019: unresolved external symbol main referenced in function WinMain
EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl GXIsDisplayDRAMBuffer(void)" (__imp_?GXIsDisplayDRAMBuffer@@YAHXZ) referenced in function WinMain
EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) struct GXDisplayProperties  __cdecl GXGetDisplayProperties(void)" (__imp_?GXGetDisplayProperties@@YA?AUGXDisplayProperties@@XZ) referenced in function WinMain
EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) struct GXKeyList  __cdecl GXGetDefaultKeys(int)" (__imp_?GXGetDefaultKeys@@YA?AUGXKeyList@@H@Z) referenced in function WinMain
EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl GXOpenInput(void)" (__imp_?GXOpenInput@@YAHXZ) referenced in function WinMain
EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl GXOpenDisplay(struct HWND__ *,unsigned long)" (__imp_?GXOpenDisplay@@YAHPAUHWND__@@K@Z) referenced in function WinMain
EasyCE.obj : error LNK2019: unresolved external symbol SHFullScreen referenced in function "void __cdecl taskbar(bool)" (?taskbar@@YAX_N@Z)
EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl GXEndDraw(void)" (__imp_?GXEndDraw@@YAHXZ) referenced in function "void __cdecl updatedisplay(void)" (?updatedisplay@@YAXXZ)
EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void * __cdecl GXBeginDraw(void)" (__imp_?GXBeginDraw@@YAPAXXZ) referenced in function "void __cdecl updatedisplay(void)" (?updatedisplay@@YAXXZ)
ARMRel/EasyCE.exe : fatal error LNK1120: 11 unresolved externals
Error executing link.exe.

EasyCE.exe - 12 error(s), 0 warning(s)

wht the hell can i do about this. when i build my programms for mips i don't have this. now when i want to build it for the arm, i do.
ok, i solved it myself
op.cpp
Compiling for PocketPC (3.0, using GAPI)
C:\Program Files\Microsoft eMbedded Tools\Common\Evc\MyProjects\game\op.cpp(137) : warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
Linking...
op.obj : error LNK2019: unresolved external symbol "int __cdecl clickypos(void)" (?clickypos@@YAHXZ) referenced in function "void __cdecl screendump(unsigned short *,unsigned short *,int,int,int,int,int,int,int)" (?screendump@@YAXPAG0HHHHHHH@Z)
op.obj : error LNK2019: unresolved external symbol "bool __cdecl pendown(void)" (?pendown@@YA_NXZ) referenced in function "void __cdecl screendump(unsigned short *,unsigned short *,int,int,int,int,int,int,int)" (?screendump@@YAXPAG0HHHHHHH@Z)
op.obj : error LNK2019: unresolved external symbol "int __cdecl clickxpos(void)" (?clickxpos@@YAHXZ) referenced in function "void __cdecl screendump(unsigned short *,unsigned short *,int,int,int,int,int,int,int)" (?screendump@@YAXPAG0HHHHHHH@Z)
op.obj : error LNK2019: unresolved external symbol "bool __cdecl clicked(void)" (?clicked@@YA_NXZ) referenced in function main
op.obj : error LNK2019: unresolved external symbol "void __cdecl update(bool)" (?update@@YAX_N@Z) referenced in function main
op.obj : error LNK2019: unresolved external symbol "unsigned long * __cdecl getbuffer(void)" (?getbuffer@@YAPAKXZ) referenced in function main
corelibc.lib(pegwmain.obj) : error LNK2019: unresolved external symbol WinMain referenced in function WinMainCRTStartup
ARMDbg/EasyCE.exe : fatal error LNK1120: 7 unresolved externals
Error executing link.exe.

EasyCE.exe - 8 error(s), 1 warning(s)
Does this mean u DIDN'T solve it?
haha
indeed i didn't seem to solve it.
You need to link to the GAPI library (gx.lib).

Dan East
i already did that, but i think i should clean up my source code mess and sorten things out. then i'll try over again.
everytime when the program is build and uploaded to my ipaq, it says that it isn't a valid ce application.
thanx for the help people. i figured out what the rest of the problems where. so now it's working.
what was the prob?
or rather, how did u fix it..?