PocketMatrix forums

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

Gapi Emulation Build Error!

Hi!

I have just downloaded GAPI emulator for Pocket PC and have copied the files to the following folders:
gx.lib - Lib directory
gx.dll - emulator/palm300/windows directory
gx.h - include directory

When I try to build a small project I get the following errors:

--------------------Configuration: Project01 - Win32 (WCE x86em) Release--------------------
Compiling...
StdAfx.cpp
Compiling...
Project01.cpp
Linking...
Project01.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall GXCloseDisplay(void)" (__imp_?GXCloseDisplay@@YGHXZ) referenced in function "int __stdcall InitInstance(struct HINSTANCE__ *,int)" (?InitInstance@@YGHPAUH
INSTANCE__@@H@Z)
Project01.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) struct GXDisplayProperties __stdcall GXGetDisplayProperties(void)" (__imp_?GXGetDisplayProperties@@YG?AUGXDisplayProperties@@XZ) referenced in function "int __stdcall I
nitInstance(struct HINSTANCE__ *,int)" (?InitInstance@@YGHPAUHINSTANCE__@@H@Z)
Project01.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall GXOpenDisplay(struct HWND__ *,unsigned long)" (__imp_?GXOpenDisplay@@YGHPAUHWND__@@K@Z) referenced in function "int __stdcall InitInstance(struct HINSTANC
E__ *,int)" (?InitInstance@@YGHPAUHINSTANCE__@@H@Z)
Project01.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall GXResume(void)" (__imp_?GXResume@@YGHXZ) referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAU
HWND__@@IIJ@Z)
Project01.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall GXSuspend(void)" (__imp_?GXSuspend@@YGHXZ) referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJP
AUHWND__@@IIJ@Z)
Project01.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall GXEndDraw(void)" (__imp_?GXEndDraw@@YGHXZ) referenced in function "bool __stdcall ClearScreen(struct COLOR)" (?ClearScreen@@YG_NUCOLOR@@@Z)
Project01.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void * __stdcall GXBeginDraw(void)" (__imp_?GXBeginDraw@@YGPAXXZ) referenced in function "bool __stdcall ClearScreen(struct COLOR)" (?ClearScreen@@YG_NUCOLOR@@@Z)
X86EMRel/Project01.exe : fatal error LNK1120: 7 unresolved externals
Error executing link.exe.

Project01.exe - 8 error(s), 0 warning(s)
-----------------------------------------------------

Can anyone tell me what I am doing wrong. Is the gx.dll file supposed to go into some other folder.

Thanks

Vikram
Conan · 13 Feb 2003, 14:07 UTC — linker errors
Just guessing but I don't think your problem is connected with GAPI.

Are you building one of the sample projects contained within the PocketFrog project ? If not you may not have everything set up correctly within your project.

I don't understand why you are downloading the GAPI emulator btw, are you not using PocketFrog and just trying to use the emulator with your own code?
vikrambk · 13 Feb 2003, 14:46 UTC — PocketFrog Error!
Hi!

I am getting the following error while compiling the PocketFrog project "Blit". I have included all the folders etc.(Stlport and PocketFrog) in the Options for the project.I get the following error.
--------------------Configuration: Blit - Win32 (WCE ARM) Debug--------------------
Compiling resources...
Compiling...
blit.cpp
Linking...
LINK : fatal error LNK1104: cannot open file "PocketFrog_ARM_Debug.lib"
Error executing link.exe.

Blit.exe - 1 error(s), 0 warning(s)
-----------------------------------------------------

I get this error for all the configurations. Pocket PC 2002 ARM & x86.

Thanks

Vikram
Conan · 13 Feb 2003, 15:12 UTC — building the PF lib
Looks like you need to build the PF library which your game requires.

Can you select PocketFrog as the active project and build the .LIB required for the configuration needed

nb: For future use, when you create a new project from scratch you need to specify that it's dependant on PF. See how Blit is set up & copy it.
You do? All I had to do was include PocketFrog.h...
This it true.. Conan (and others) you don't have to do any special tricks (or even include your project into the PocketFrog project).. All you have to do is include the PocketFrog.h (I use <> but "" will also work) and make shure you have the PocketFrog in your eVC (or VC6) include path and library path.

(but, as Conan mentioned, you must build the PocketFrog library before you compile your project)