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

Error when compiling for Pocket PC


Error when compiling for Pocket PC

Postby Bradk3 » May 27, 2003 @ 7:27pm

I'm having a fantastic time developing with GapiDraw! I have been working with the sample application example outlined in the GapiDraw Documentation article titles "Creating a new project". The example compiles and runs perfectly on my desktop pc and my laptop. However, when I attempt to compile it for my pocket pc, I get the following error:

C:\Source\MyProject\Common\MyProject.cpp(29) : error C2731: 'WinMain' : function cannot be overloaded

C:\Source\MyProject\Common\MyProject.cpp(28) : see declaration of 'WinMain'


I believe I have followed the example instructions, and I'm reasonably sure the code is correct, as it runs on my stationary pcs. The same error occured with GapiDraw v. 1.04 and still occurs now that I am using v. 2.01b. I have tried compiling this on two different pc's with the same result. Sadly, I have only one ppc (Casio E-125), so that may be the problem...

Does anyone have any idea why this is happening and what I can do about it?
Bradk3
 


Overloaded Functions

Postby CpuWhiz105 » May 28, 2003 @ 2:01am

All men are created equal,
but geeks are a little more equal.
User avatar
CpuWhiz105
pm Member
 
Posts: 39
Joined: Feb 24, 2003 @ 8:33pm
Location: Colorado Springs, CO - U.S.A.


Postby BradK3 » May 28, 2003 @ 6:43pm

Hmmm... I'll have to check into my WinMain definition...

But, really, the problem I have is that I ONLY get this error when compiling for my PPC. The program compiles and runs perfectly on my stationary pc's. The code is exactly the same whether I'm compiling for my stationary pcs or my PPC. I don't know if it has something to do with my settings, with Embedded Visual C++, or my PPC... Well, I'll keep trying!
User avatar
BradK3
pm Member
 
Posts: 19
Joined: May 27, 2003 @ 7:34pm
Location: Clearfield, Utah


WinMain

Postby CpuWhiz105 » May 28, 2003 @ 10:32pm

All men are created equal,
but geeks are a little more equal.
User avatar
CpuWhiz105
pm Member
 
Posts: 39
Joined: Feb 24, 2003 @ 8:33pm
Location: Colorado Springs, CO - U.S.A.


Postby BradK3 » May 30, 2003 @ 4:20pm

Thanks for the advice! I now think that I have something wrong in my project settings. Somehow I'm trying to link to the wrong library... or SOMETHING. I can get all the samples to compile and run on my PPC, so that tells me that I've made a mistake somewhere.
User avatar
BradK3
pm Member
 
Posts: 19
Joined: May 27, 2003 @ 7:34pm
Location: Clearfield, Utah


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

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