diff -r 80ef3a206772 -r 48780e181b38 Symbian3/SDK/Source/GUID-78175610-72F4-5CAF-B1E9-9A761347C9DB.dita --- a/Symbian3/SDK/Source/GUID-78175610-72F4-5CAF-B1E9-9A761347C9DB.dita Fri Jul 16 17:23:46 2010 +0100 +++ b/Symbian3/SDK/Source/GUID-78175610-72F4-5CAF-B1E9-9A761347C9DB.dita Tue Jul 20 12:00:49 2010 +0100 @@ -1,31 +1,58 @@ - - - - - -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 + + + + + +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.
  • +
+ +To build Hello for the Emulator, run bldmake from the directory where the bld.inf file is +located: +bldmake bldfiles +This creates the <file>abld.bat</file> batch file. + +Use abld to build the project, for instance: +abld build wins udeb + +To run it, invoke hello.exe + +To 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 + + +
+Application +Installation Guide +
\ No newline at end of file