Examples for Open C Libraries |
This example is a hybrid application that depicts a solution for the producer - consumer problem using Open C. This application uses main() as an entry point. It uses libc and libpthread.
TARGET OpenCProducerConsumerEx.exe TARGETTYPE EXE UID 0x100039CE 0xA0001318 SOURCEPATH ..\data START RESOURCE OpenCProducerConsumerEx_reg.rss #ifdef WINSCW TARGETPATH \private\10003a3f\apps #else TARGETPATH \private\10003a3f\import\apps #endif END //RESOURCE CAPABILITY NONE VENDORID 0 SOURCEPATH ..\src SOURCE ProducerConsumer.c SOURCE Producer.c SOURCE Consumer.c SOURCE Observer.cpp SOURCE Stack.cpp USERINCLUDE ..\inc SYSTEMINCLUDE \epoc32\include // These are needed for including Open C headers // NOTE! When part of SDK, path will differ SYSTEMINCLUDE \epoc32\include\stdapis // Using main() as entry point STATICLIBRARY libcrt0.lib LIBRARY euser.lib LIBRARY efsrv.lib LIBRARY libc.lib LIBRARY libpthread.lib LANG SC