This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Very new to this !!


Very new to this !!

Postby brendan » Jan 14, 2002 @ 11:03pm

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)
brendan
 


dropped the code....

Postby brendan » Jan 14, 2002 @ 11:29pm

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
brendan
 


Postby prj » Jan 14, 2002 @ 11:30pm

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).
Paul Rene Jørgensen
User avatar
prj
pm Member
 
Posts: 10
Joined: Jan 9, 2002 @ 5:18pm
Location: Oslo, Norway


:( tried that :(

Postby brendan » Jan 14, 2002 @ 11:39pm

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
 


Postby MirekCz » Jan 14, 2002 @ 11:42pm

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.
With best regards,
Mirek Czerwinski
User avatar
MirekCz
pm Member
 
Posts: 269
Joined: Sep 18, 2001 @ 6:42pm
Location: Poland,city Poznań


I've only just insatlled fresh

Postby brendan » Jan 14, 2002 @ 11:48pm

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
brendan
 


I've only just insatlled fresh

Postby prj » Jan 14, 2002 @ 11:51pm

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.
Paul Rene Jørgensen
User avatar
prj
pm Member
 
Posts: 10
Joined: Jan 9, 2002 @ 5:18pm
Location: Oslo, Norway


nope, 1.5 or 1.6 does not work

Postby brendan » Jan 15, 2002 @ 12:00am

I downloaded the older 1.5 version, setup the linking etc, identical problem....

-Ahhhh!!! programming is so frustrating.....
brendan
 


Postby MirekCz » Jan 15, 2002 @ 12:58am

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.
With best regards,
Mirek Czerwinski
User avatar
MirekCz
pm Member
 
Posts: 269
Joined: Sep 18, 2001 @ 6:42pm
Location: Poland,city Poznań


Yes, I know....

Postby brendan » Jan 15, 2002 @ 1:12am

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. :)
brendan
 


Sorry =)

Postby brendan » Jan 15, 2002 @ 1:47am

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....
User avatar
brendan
pm Insider
 
Posts: 451
Joined: Oct 23, 2001 @ 2:51am
Location: Hobart, Australia


Sorry =)

Postby prj » Jan 15, 2002 @ 1:52am

Probably a silly question, but have you added EasyCE.h and .cpp to your project?
Paul Rene Jørgensen
User avatar
prj
pm Member
 
Posts: 10
Joined: Jan 9, 2002 @ 5:18pm
Location: Oslo, Norway


Postby MirekCz » Jan 15, 2002 @ 1:56am

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???
With best regards,
Mirek Czerwinski
User avatar
MirekCz
pm Member
 
Posts: 269
Joined: Sep 18, 2001 @ 6:42pm
Location: Poland,city Poznań


Better, sort off....

Postby brendan » Jan 15, 2002 @ 2:12am

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....
User avatar
brendan
pm Insider
 
Posts: 451
Joined: Oct 23, 2001 @ 2:51am
Location: Hobart, Australia


getting better...... sort off....

Postby brendan » Jan 15, 2002 @ 2:19am

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....
User avatar
brendan
pm Insider
 
Posts: 451
Joined: Oct 23, 2001 @ 2:51am
Location: Hobart, Australia


Next

Return to Phantom's Forum


Sort


Forum Description

Discuss any of Phantom's projects here (Operation Nutcracker, etc.)

Moderators:

sponge, RICoder, Phantom

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron