Thread: Code not compiling for Symbian^3

1. 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. 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. 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 ?

4. 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. 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 ?

6. Re: Code not compiling for Symbian^3

the error is coming from include/es_sock.h

7. 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. 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.

Posting Permissions

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