Very new to this !!
I've just started to use EVC, and easyce1.6, forgive my stupidity, I'm assumming the following code is related to GAPI in some way, any solutions?:
Linking...
sample.obj : error LNK2019: unresolved external symbol "unsigned short * __cdecl getbuffer(void)" (?getbuffer@@YAPAGXZ) referenced in function main
sample.obj : error LNK2019: unresolved external symbol "bool __cdecl clicked(void)" (?clicked@@YA_NXZ) referenced in function main
sample.obj : error LNK2019: unresolved external symbol "void __cdecl update(bool)" (?update@@YAX_N@Z) referenced in function main
sample.obj : error LNK2019: unresolved external symbol "public: __cdecl APBomb::APBomb(int,int,int)" (??0APBomb@@QAA@HHH@Z) referenced in function main
sample.obj : error LNK2019: unresolved external symbol "void __cdecl resettimer(void)" (?resettimer@@YAXXZ) referenced in function main
sample.obj : error LNK2019: unresolved external symbol "void __cdecl clear(unsigned short)" (?clear@@YAXG@Z) referenced in function main
sample.obj : error LNK2019: unresolved external symbol "void __cdecl centre(char *,int,unsigned short)" (?centre@@YAXPADHG@Z) referenced in function main
sample.obj : error LNK2019: unresolved external symbol "void __cdecl line(int,int,int,int,unsigned short)" (?line@@YAXHHHHG@Z) referenced in function main
sample.obj : error LNK2019: unresolved external symbol "public: __cdecl APBomb::~APBomb(void)" (??1APBomb@@QAA@XZ) referenced in function main
sample.obj : error LNK2019: unresolved external symbol "int __cdecl msecs(void)" (?msecs@@YAHXZ) referenced in function main
corelibc.lib(pegwmain.obj) : error LNK2019: unresolved external symbol WinMain referenced in function WinMainCRTStartup
MIPSRel/sample.exe : fatal error LNK1120: 11 unresolved externals
Error executing link.exe.
sample.exe - 12 error(s), 0 warning(s)
I killed most of the code to try and workout what's going on, i.e
#include "easyce.h"
void main()
{
}
I now get this:
corelibc.lib(pegwmain.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup
any ideas?
-thanks brendan
Look in the Projects : Settings menu and open the Link flap on the right side. You should add gx.lib on the Object/Library modules line. (and maybe Aygshell.lib too).
I've tried the following for W32 (WCE MIPS) release, and for "all configurations"
commctrl.lib coredll.lib lib_mips/gx.lib Aygshell.lib
still no joy!!
brendan you're missing the winmain function, read about it in msdn or check easyce source, it contains a winmain function. Windows programs need to have this function.
I've only just installed fresh eVC, so why would it be missing ? what file should I search my system for to confirm it's there ?
-brendan
It's in the EasyCE.cpp/h files. If you havn't erased it previously. Try with a clean set of EasyCE files, add those lib files AND adjust you include directory.
I downloaded the older 1.5 version, setup the linking etc, identical problem....
-Ahhhh!!! programming is so frustrating.....
brendan :every program done with evc++ must have a winmain function. it's the function when windows starts executing your program, without it windows wouldn't know where to start. Therefore compilator expects you to have a winmain function in your C source files for every project you create. EasyCE includes one, but I haven't used it personally so I don't know exactly how to use it. You have got a lot to learn I guess, programming is not like a short time fun, it takes years to learn.
I'm well aware of the problems:
www.ozcreations.com.au!!!
up until now I've been using a simpler language pocketC, hoping to inprove my games, so I'm looking at eVC.
yes I understand what your saying, but that should be included in the easyce.h library.... I assume, taken from sample program just below the void main() (written by jacco, I assume)
// At this stage, EasyCE is initialized.
// On the PC, a window has been created.
// On the PocketPC, you now have a full
// screen application.
therefore I assume I don't have to include nothing, as per his other doco stating that:
#include "easyce.h"
void main()
{
}
should compile!
where's jacco when you need him.

Sorry, didn't mean to sound to masty there!, but this is driving me up the wall.... I searched the easyce.h file, and yes it does seem to call all the required windows libs etc. I'm sure it's just a simple problem, as are most bugs....
-brendan, guess I'll have to wait until jacco read this....
Probably a silly question, but have you added EasyCE.h and .cpp to your project?
like prj asks, did you add it?
well, why don't you actually download example source that uses easyce (phantoms tutorials from
www.pocketmatrix.com/phantom ?) and see how he gets it working???
ok in the fileview I have included: EasyCE.cpp EasyCE.h and sample.cpp it now complies with this error:
Cannot open include file: 'zlib.h': No such file or directory
so I tried to include this as well but no luck, I then set the /zlib/ folder in the resources section, still no luck ??? how do I tell eVC to check the zlib folder for inclusion....
Ok I changed the include in the easyce.h to /zlib/zlib.h, that works, I then had to add a resource for OpenPTC/source, and now:
asyCE.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 gzopen referenced in function "bool __cdecl tgazload(char *,int,int,unsigned short *)" (?tgazload@@YA_NPADHHPAG@Z)
EasyCE.obj : error LNK2019: unresolved external symbol gzread referenced in function "bool __cdecl tgazload(char *,int,int,unsigned short *)" (?tgazload@@YA_NPADHHPAG@Z)
EasyCE.obj : error LNK2019: unresolved external symbol gzclose referenced in function "bool __cdecl tgazload(char *,int,int,unsigned short *)" (?tgazload@@YA_NPADHHPAG@Z)
MIPSRel/sample.exe : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.
sample.exe - 5 error(s), 0 warning(s)
-Easy CE, mmmm not yet....
OK, I've dropped back to v1.5, because it does not have all the zlib stuff I now only have 1 error:
EasyCE.obj : error LNK2019: unresolved external symbol SHFullScreen referenced in function "void __cdecl taskbar(bool)" (?taskbar@@YAX_N@Z)
-thanks for all the help.....
OK, i've fixed the problem.... basically I stuffed up

insted of loading the sample workspace, I opened the sample.cpp, then added it to a blank workspace, overwriting the "demo one", and stuffing everything....
-brendan, sorry for wasting everyones time....
Brendan dude,
Sorry, I was asleep during the night wich happens to coincide with your day.

If someone knows of a reliable way to get rid of that unnecessary activity, please let me know.
Anyway, the main problem you where having (the winmain stuff) is caused by the fact that you apparently didn't add EasyCE.cpp to your project. EasyCE (1.5 AND 1.6) contains a winmain, so adding that file should solve that linker problem.
If you are missing SHFullScreen you forgot to add gx.lib to your project.
About zlib: I always add it to my projects; it involves copying a dir (get it from one of my sample projects), and adding a directory under the project settings/C++ tag: Add a header file dir that points to the zlib dir you just copied.
The sample projects have all this stuff set up properly, but I admit that it's quite a task to get it all right from scratch. EasyCE 1.7 will be a lib, to ease this slightly.
- Jacco.
The Lib sounds like a good idea!!! I'm firing now, I've even got mikmod working.....
-brendan
Another silly question... Have you installed the gx.lib's in their corresponding directories?
I put mine in C:\Program Files\Windows CE Tools\wce300\MS Pocket PC\lib\<cpu>\
not in the ce tool dirs, no. But I do have them as /lib_mips/gx.lib etc within the workspace dir. I'm basically building on the easyce1.6 sample, so zlib and gapi lib's etc are allready to go. I've just erased the sample.cpp code, and replaced it with my own etc.... I built the sample mikmod program, and then copied the winmikmodce.lib (I think) library to the lib_mips folder, then added the header file to my code etc.... pheww...
why do you ask ?
-brendan
i think i had similar problems when putting EasyCE.h in the folder "Header Files" instead of "Source Files"
i put it again in "Source Files" and it links perfectly...
of maybe when gx.lib was not accessed with good path in the link section of the properties. (i copied gx.lib in standard lib folder whose path is naturally referenced)
** try to help **
** hope my english is clean ?? don't forget to let me know if i appear to be a boring froggy newbye :p **
Make sure you're linking with aygshell.lib.
yep, all working fine. Next question, does anyone know where I can get some sample code on zlib, or maybe someone can show me how to load a tga file from a zip, to display on the screen using the easyce tga func.
-brendan
in regards to the post previous, I've been trying to use the tgazload func, with a tga file in a std .zip file (obviously the wrong format, as all I get on the screen is junk), anyhow I'd like to zip all my media into one file, and embed it into my application, then either deflate and delete after use, or access directly
-ideas
You need to zip your files using the gzip.exe tool (can be obtained on TuCows, for example). It compresses a single file to a single compressed file. Compression is very good, basically it's equal to WinZIP. Decompression is exceptionally fast.
There seem to be some libs that allow for multiple files in gz files, but I usually use a feature offered by the PocketPC OS called 'subdirectories' to get exactly the same result.

I've read this thread and still cannot get lemmings, or any EasyCE samples to comile!
Is there someplace to download the FULL source code, finished that compiles fully?
Where do I add the WInMain functions?
is there an EasyCE installer? Where do I put the .h .c etx files?
None of this seems to be documented and the samples don't work.
I'm new to eVC coding so really appreciate the help getting started...
Thanks!

Lemmings should compile out-of-the-box (out of the zip, actually). Are you using Embedded Visual Tools to compile it?
Yes,
I am using eVC, a version just downloaded last week.
But it won;t compile, giving me an error similar to the one mentioned at the beginning of this thread.
Can someone tell me where aall the files go, for both EasyCE plus the other source to get it to compile?
None of the EasyCE samples compile for me, even though I am suing a standard installation, (full install) with all the "standard" defauls for the file locations wehen I installes eVC and eVB, and unzipped the samples to their own directory in my documents folder.
I really appreciat ethe help!
Thanks!
here is the exact error for Lemmings:
C:\My Documents\I-Paq Development\EasyCE 1.5\lemmfullsrc\EasyCE.cpp(14): Could not find the file ptc.h.
Linking...
EasyCE.obj : error LNK2019: unresolved external symbol SHFullScreen referenced in function "void __cdecl taskbar(bool)" (?taskbar@@YAX_N@Z)
ARMDbg/Lemmings.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Lemmings.exe - 2 error(s), 0 warning(s)
You need to link to aygshell.lib.
Dan East
Must be an echo in here...
I only looked at this last page when I replied. I assumed someone wouldn't ask a question that had been answered a couple posts before.
Dan East
The problem I had was I was opening the .cpp file individualy (sp), and no the workspace!
-brendan