×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    77

    how to import standard C code to my Symbian application?

    Hi,all! I need to import video compression codd which is in C to my Sybian C++ app, how can i do it? what are the steps i should follow?
    Thanks in advance!

    Regards,
    xiaoyu

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    58

    RE: how to import standard C code to my Symbian application?

    Hi xiaoyu,

    You can compile C code in Symbian by including the header #include stdlib.h. In addition add any include which you find not included in the stdlib.h. Eg.

    #include <stdlib.h>
    #include <string.h>
    #include <types.h>
    #include <f32file.h>

    others.. so on

    Also add the estlib.lib need to be added to your .mmp file.

    But this alone is not enough. You have to provide proper include path.
    In my case, i was able to port my C type application which was using C type string processing. I also retained some of the C type file processing. You have to be careful in file handling. I ended up writing fwrite etc the symbian way. But this is not much and is a one time task.

    Here is what i added to my myproj.mmp.
    ( Lib and header include i used.)


    USERINCLUDE . ..\inc

    SYSTEMINCLUDE . \epoc32\include \epoc32\include\libc \epoc32\include\libc\netinet \epoc32\include\libc\sys

    LIBRARY euser.lib apparc.lib cone.lib eikcore.lib C32.lib fbscli.lib
    LIBRARY eikcoctl.lib eikctl.lib avkon.lib efsrv.lib esock.lib irda.lib
    LIBRARY bafl.lib apgrfx.lib gdi.lib CommonUI.lib apmime.lib estlib.lib


    Hope this helps.

    regards

    murali

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×