PocketMatrix forums

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

Help !

Hi !
I try to compile my sources and easyce put me this error... Please help me ! Thanks !
Franck

Compiling...
toto.cpp
EasyCE.cpp
Compiling for PocketPC (3.0, using GAPI)
C:\toto\toto\EasyCE.cpp(1215) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Generating Code...
Error executing cl.exe.

Dames.exe - 1 error(s), 0 warning(s)
Hi...

Choose Project->Settings in the embedded visual environment. Enter the category precompiled headers and choose "Not using precompiled headers".

/Anders
Thanks !
Hups ! Sorry !
I can't find the category precompiled headers in
project settings !!!
Where is it ?
I have Embedded Visaul C++ 3.0...
Thanks !
Franck
Pffff !
I think I look like a baby...
OK for precompiled header... But now I have some new errors...
All are in the linking : unresolved external symbol !! (and 2 warnings) What's this ??

H E L P !

(I thank it was easy to place EasyCE in my sources!..but it isn't ! :(

-----------------------------------------------
Compiling for PocketPC (3.0, using GAPI)
DamesView.cpp
EasyCE.cpp
Compiling for PocketPC (3.0, using GAPI)
C:\Dames\Dames\EasyCE.cpp(70) : warning C4007: 'main' : must be '__cdecl'
MainFrm.cpp
Generating Code...
Linking...
LINK : warning LNK4031: no subsystem specified; CONSOLE assumed
EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall GXCloseDisplay(void)" (__imp_?GXCloseDisplay@@YGHXZ) referenced in function _WinMain@16
EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall GXCloseInput(void)" (__imp_?GXCloseInput@@YGHXZ) referenced in function _WinMain@16
EasyCE.obj : error LNK2019: unresolved external symbol _main referenced in function _WinMain@16
EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall GXIsDisplayDRAMBuffer(void)" (__imp_?GXIsDisplayDRAMBuffer@@YGHXZ) referenced in function _WinMain@16
EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) struct GXDisplayProperties  __stdcall GXGetDisplayProperties(void)" (__imp_?GXGetDisplayProperties@@YG?AUGXDisplayProperties@@XZ) referenced in function _WinMain@16
EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) struct GXKeyList  __stdcall GXGetDefaultKeys(int)" (__imp_?GXGetDefaultKeys@@YG?AUGXKeyList@@H@Z) referenced in function _WinMain@16
EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall GXOpenInput(void)" (__imp_?GXOpenInput@@YGHXZ) referenced in function _WinMain@16
EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall GXOpenDisplay(struct HWND__ *,unsigned long)" (__imp_?GXOpenDisplay@@YGHPAUHWND__@@K@Z) referenced in function _WinMain@16
EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall GXEndDraw(void)" (__imp_?GXEndDraw@@YGHXZ) referenced in function "void __stdcall updatedisplay(void)" (?updatedisplay@@YGXXZ)
EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void * __stdcall GXBeginDraw(void)" (__imp_?GXBeginDraw@@YGPAXXZ) referenced in function "void __stdcall updatedisplay(void)" (?updatedisplay@@YGXXZ)
X86EMDbg/Dames.exe : fatal error LNK1120: 10 unresolved externals
Error executing link.exe.

Dames.exe - 11 error(s), 2 warning(s)
----------------------------------------------

Is someone know what sort of problem is it ?
THANKS A LOT !!!!
Franck
You need to link to gx.lib.  I don't know if the GAPI is included in Jacco's distribution. If not then you will need to download it from Microsoft.

Dan East
It doesn't come with most of the samples, I believe, but it is in the Lemmings source code package.
:(((((

I input gx.lib in "project->settings" but i have the same problem...
Maybe the problem is that I compile it in WCE x86em mode ?!

It's like sampleapp, I try todo it working with the emulation...and... it's impossible ?!

Please help me !
I WANT TO USE EASYCE !!
Franck
(am I so bad ?)


--------------------Configuration: Dames - Win32 (WCE x86em) Release--------------------
Linking...
LINK : warning LNK4031: no subsystem specified; CONSOLE assumed
EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall GXCloseDisplay(void)" (__imp_?GXCloseDisplay@@YGHXZ) referenced in function _WinMain@16
EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall GXCloseInput(void)" (__imp_?GXCloseInput@@YGHXZ) referenced in function _WinMain@16
EasyCE.obj : error LNK2019: unresolved external symbol _main referenced in function _WinMain@16
EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall GXIsDisplayDRAMBuffer(void)" (__imp_?GXIsDisplayDRAMBuffer@@YGHXZ) referenced in function _WinMain@16
EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) struct GXDisplayProperties  __stdcall GXGetDisplayProperties(void)" (__imp_?GXGetDisplayProperties@@YG?AUGXDisplayProperties@@XZ) referenced in function _WinMain@16
EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) struct GXKeyList  __stdcall GXGetDefaultKeys(int)" (__imp_?GXGetDefaultKeys@@YG?AUGXKeyList@@H@Z) referenced in function _WinMain@16
EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall GXOpenInput(void)" (__imp_?GXOpenInput@@YGHXZ) referenced in function _WinMain@16
EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall GXOpenDisplay(struct HWND__ *,unsigned long)" (__imp_?GXOpenDisplay@@YGHPAUHWND__@@K@Z) referenced in function _WinMain@16
EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall GXEndDraw(void)" (__imp_?GXEndDraw@@YGHXZ) referenced in function "void __stdcall updatedisplay(void)" (?updatedisplay@@YGXXZ)
EasyCE.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void * __stdcall GXBeginDraw(void)" (__imp_?GXBeginDraw@@YGPAXXZ) referenced in function "void __stdcall updatedisplay(void)" (?updatedisplay@@YGXXZ)
X86EMRel/Dames.exe : fatal error LNK1120: 10 unresolved externals
Error executing link.exe.

Dames.exe - 11 error(s), 1 warning(s)
Did you put your required library files into your project/workspace directory?

Like for jornada, I have lib_pc and lib_sh3 directories inside. I believe you also have to go to Project/Settings, then under one of the drop down combo boxes (I can't remember either C/C++ or Linker or something), you will find this path for Additional Source files, then you must add lib_sh3, etc.

I can't really remember coz all my files are in another comp which is not on at the moment. When I'm using it, I'll see if I can find it.

Patrick
I take it that you could compile the sampleapp application, and you are trying to use easyCE for your own application?

I found the instructions for my previous post in the first few commented lines of sampleapp.cpp. It says:

// To use EasyCE, we need to include EasyCE.h. Note
// that we also need to add gx.lib to our project.
// This can be done in project settings/linker/General/
// Object&Library modules. Embedded visual tools needs
// to know where it can find gx.lib; since we need
// a different version for each target platform,
// it's best to store them in their own subdir.
// Specify these dirs for each platform in Project
// settings/linker/input/Additional library path.

Hope this helps.

Patrick