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.