Page 1 of 1

Gapi Emulation Build Error!

PostPosted: Feb 13, 2003 @ 2:50pm
by vikrambk
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

linker errors

PostPosted: Feb 13, 2003 @ 3:07pm
by Conan
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?

PocketFrog Error!

PostPosted: Feb 13, 2003 @ 3:46pm
by vikrambk
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

building the PF lib

PostPosted: Feb 13, 2003 @ 4:12pm
by Conan

PostPosted: Feb 14, 2003 @ 2:13am
by damian

PostPosted: Feb 14, 2003 @ 4:39am
by adde