×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    28

    Code not compiling for Symbian^3

    Hi, I have a 5th edition code compiling perfectly. But its not compiling for Symbian^3 with the following errors -

    comms-infras/metacontainer.h : no such file or directory
    elements/sd_errors.h : no such file or directory
    comms-infras/metadata.h: no such file or directory

    ....
    ....

    and a number of such errors

    malformed option `-D /epoc32/include'


    I have included the following macros in my mmp

    MACRO APP_LAYER_SYSTEMINCLUDE
    MACRO MW_LAYER_SYSTEMINCLUDE
    MACRO OS_LAYER_SYSTEMINCLUDE


    ....and also included the relevant new header file paths. However, my problem persists even thought it was solved in the following post -

    http://www.developer.nokia.com/Commu...ion#post856200

    Thanks

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: Code not compiling for Symbian^3

    You might want to check that you have included the include paths for the folders where these files are into your mmp file.

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    28

    Re: Code not compiling for Symbian^3

    Hi symbianyucca,

    I have added these int the systeminclude paths

    However,

    ../platform/loc
    ../platform/mw/loc
    ../platform/app/loc
    ../platform/loc/sc
    ../platform/mw/loc/sc
    ../platform/app/loc/sc

    are not present in the epoc32 include path ?
    Last edited by puzli; 2012-05-07 at 07:48.

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: Code not compiling for Symbian^3

    Can we then check themes ones, just copy-paste the information from your project:
    1. How did you add the line for system include
    2. what is written to the include line exactly
    3. What is the excat folder where you have them included in

    Also make sure you do not have any spaces on anywhere of any paths (including all tools & source code folders & file names) and that all parts used are installed into same drive (preferable C:-Drive)

  5. #5
    Registered User
    Join Date
    Mar 2008
    Posts
    28

    Re: Code not compiling for Symbian^3

    SYSTEMINCLUDE \epoc32\include \epoc32\include\mw \epoc32\include\platform\mw \epoc32\include\platform \epoc32\include\app \epoc32\include\platform\app \epoc32\include\libc \epoc32\include\ecom \epoc32\include\variant \epoc32\include\platform\comms-infras \epoc32\include\platform\elements \epoc32\include\bafl ..\..\..\..\..\xyz\include

    MACRO APP_LAYER_SYSTEMINCLUDE
    MACRO MW_LAYER_SYSTEMINCLUDE
    MACRO OS_LAYER_SYSTEMINCLUDE

    Yes, everything is on C: drive


    However,

    ../platform/loc
    ../platform/mw/loc
    ../platform/app/loc
    ../platform/loc/sc
    ../platform/mw/loc/sc
    ../platform/app/loc/sc

    are not present in the epoc32 include path ?
    Last edited by puzli; 2012-05-07 at 08:07.

  6. #6
    Registered User
    Join Date
    Mar 2008
    Posts
    28

    Re: Code not compiling for Symbian^3

    the error is coming from include/es_sock.h

  7. #7
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: Code not compiling for Symbian^3

    basically I have no idea on what would be the MACRO's there. Anyway, can you check your SDK and find the metacontainer.h file, and see what folder it is in, then include it as #include <metacontainer.h> and then see that the system include path includes the ending part of the actual folder path where the file is starting from \epoc32\.

    Then see that the error no such file or directory for the metacontainer.h disappears, and then do same for other files having this same error reported.

  8. #8
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: Code not compiling for Symbian^3

    The MACRO keywords should not be there. XY_LAYER_SYSTEMINCLUDE-s are simple #define-d things which would extract in place into a long SYSTEMINCLUDE line. However writing MACRO in front of them kills the entire thing.
    Otherwise it is true that the loc folders do not exist, so these shortcuts result in some warnings for them.

Similar Threads

  1. error in compiling code
    By ijazhasan in forum Symbian
    Replies: 12
    Last Post: 2010-02-27, 17:10
  2. Help me in compiling c++ code on symbian
    By vinayakak in forum Symbian
    Replies: 4
    Last Post: 2010-02-10, 12:31
  3. compiling assembly code in gcce
    By mihirg in forum Symbian
    Replies: 1
    Last Post: 2008-12-24, 13:26
  4. compiling and auto-running py code
    By DanNacht in forum Symbian
    Replies: 1
    Last Post: 2007-09-30, 19:25
  5. Replies: 3
    Last Post: 2007-01-18, 11:27

Posting Permissions

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