diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-78175610-72F4-5CAF-B1E9-9A761347C9DB.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-78175610-72F4-5CAF-B1E9-9A761347C9DB.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +1,31 @@ + + + + + +Hello World: A minimal console applicationThis section describes the steps to build the Hello World project on the emulator. + +

The code in this section has been taken from the Hello example.

This example demonstrates the most basic use of STDLIB. It consists of the single source code file, slhello.c whose sole function, main() calls printf().

The Hello example's project definition file (Hello.mmp) contains the following:

TTARGET hello.exe +TARGETTYPE exe +UID 0 +SOURCEPATH . +SOURCE slhello.c +SYSTEMINCLUDE \epoc32\include\libc \epoc32\include + +LIBRARY estlib.lib euser.lib +STATICLIBRARY ecrt0.lib
  • The import library estlib.lib is the C standard library.
  • The project also links to ecrt0.lib. This file provides the E32Main() entrypoint for a .exe. It also provides other services including command-line parsing, and it calls main().
  • The SYSTEMINCLUDE path specifies \epoc32\include\libc\, which is the location for STDLIB's header files.
+

For more information on the project specification for a .exe see How to build for an EXE target.

+ To build Hello for the Emulator, run bldmake from the directory where the bld.inf file is located: + + bldmake bldfilesThis creates the <file>abld.bat</file> batch file. + Use abld to build the project, for instance:abld build wins udebTo run it, invoke hello.exeTo build Hello for the target machine, invoke bldmake and abld, specifying the appropriate target platform.To install software on the target device create a .sis file using the Symbian Installation system. See the Application Installation Guide + + + +
How to build for an EXE targetHow to use the Symbian build processApplication Installation Guide
\ No newline at end of file