Compilers and IDEs Using Open C |
There are some known issues when compiling an Open C application containing the main() entry point and using the GCCE target compiler. A workaround is described in this section:
AR=arm-none-symbianelf-ar ARCHIVER=$(AR) export ARCHIVER
STATICLIBRARY libcrt0.lib
#include <stdio.h> #ifdef __GCCE__ #include <staticlibinit_gcce.h> // This is needed in one file #endif int main(void) { printf("Hello Open C!\n"); printf("Press a character to exit!"); getchar(); return 0; }
©Nokia 2007 |