This 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
Note:
estlib.lib
is the C standard library.ecrt0.lib
. This file provides the E32Main()
entrypoint for a .exe
. It
also provides other services including command-line parsing, and it
calls main()
.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:
Example: bldmake bldfiles
Use abld
to build the project, for instance:
Example: 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.