Page 1 of 1

Error when compiling for Pocket PC

PostPosted: May 27, 2003 @ 7:27pm
by Bradk3
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?

Overloaded Functions

PostPosted: May 28, 2003 @ 2:01am
by CpuWhiz105

PostPosted: May 28, 2003 @ 6:43pm
by BradK3
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!

WinMain

PostPosted: May 28, 2003 @ 10:32pm
by CpuWhiz105

PostPosted: May 30, 2003 @ 4:20pm
by BradK3
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.