C Compiler?!?!

Discuss PocketC for CE (including Desktop Edition)

Postby zibarts on Tue Oct 15, 2002 2:04 am

:?:I've been trying to Compile C on the PocketC, but it dosen't seem to be doing it, for example:
<b>int</b> main()
finds problems in that line itself.
How is that possible, I've seen the exaples that come with the prog
they don't #inculde <anylibraries.h>:?:
zibarts
 
Posts: 1
Joined: Tue Oct 15, 2002 2:03 am

Postby guy on Tue Oct 15, 2002 7:05 am

PocketC functions do not have a declared return type. The type is determined by the type of the expression in the return statement. Remove the int before the main().

PocketC does not support the system header library directory include format <>. You have to use the program include format "" with a complete path.

PocketC is not C. It has a large number of similarities and a few differences. It is possible to write code that is portable between C and PocketC you just need a few #ifdef lines or some cunning use of macros for function return types.


Guy
[url]mailto:pcform@pcform.net[/url]
http://www.pcform.net
PocketC CE API interface: http://www.networkdynamics.net/PCForm.html#library
PCForm and CE API forum: http://www.networkdynamics.net/forum
Guy
[url]mailto:pcform@pcform.net[/url]
http://www.pcform.net
PocketC CE API interface: http://www.networkdynamics.net/PCForm.html#library
PCForm and CE API forum: http://www.networkdynamics.net/forum
guy
 
Posts: 879
Joined: Thu Dec 07, 2000 8:58 am
Location: United Kingdom


Return to PocketC for CE

Who is online

Users browsing this forum: No registered users and 1 guest

cron