S60 Open C
Examples for Open C Libraries

Examples for Open C Libraries

Table of Contents

Hello Open C
MMP File for Hello Open C
Source Code for Hello Open C

 


Hello Open C

This example illustrates how to get started with development using Open C and main() as an entry point for the application. The application writes "Hello Open C" to the console

 


MMP File for Hello Open C

TARGET        	openchello1.exe
TARGETTYPE    	exe
UID           	0x100039CE 0xA0001314
VENDORID      	0
SOURCEPATH      ..	\data
START RESOURCE  openchello1_reg.rss

#ifdef WINSCW
TARGETPATH 	    \private\10003a3f\apps
#else
TARGETPATH 	    \private\10003a3f\import\apps
#endif
END //RESOURCE

SOURCEPATH      .	.\src
SOURCE         	   openchello1.cpp
USERINCLUDE     .	.\inc
SYSTEMINCLUDE   	 \epoc32\include\stdapis
SYSTEMINCLUDE    	 \epoc32\include

// Using main() as entry point
STATICLIBRARY libcrt0.lib

// libc and euser are always needed when using main() entry point
LIBRARY     libc.lib 
LIBRARY 	  euser.lib
	
// No capabilities needed by this application
CAPABILITY	None

 


Source Code for Hello Open C

Go to this location \nokia_plugin\openc\s60opencex\openchello1 to view the source code for this example.

NOTE: This code has been tested on Carbide.

Give feedback of this article


Back to top

Copyright ©2008 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user.