You Are Here:

Community: Wiki

This page was last modified on 8 September 2009, at 07:51.

Compiling C- code for 3rd Edition Target Devices (UREL mode)

From Forum Nokia Wiki

Reviewer Approved   

This article is worth for developers who are porting their c code to run on Symbian 3rd Edtion devices

Following are the major changes that have to be done :

1> Go to the following path

C:\Symbian\9.1\S60_3rd\Epoc32\tools\compilation_config

        OR

$(EPOCROOT)\tools\compilation_config

2> Open the gcce.mk file

search for the following lines

# For .c Source files
C_LANG_OPTION=-x c

Edit the above line as

# For .c Source files
C_LANG_OPTION=-x c++

The above change tells the compiler that the C files will be compiled by C++ compiler


Also Add the following line in the .MMP file

YourApp.mmp
// This tells the compiler to supress typecasting errors
OPTION CW -lang c++
OPTION ARMCC --cpp
//Informing the compiler that the source is C++
OPTION GCC -x c++

Also Visit this link for more information on C Code porting [Mixing and Compiling C Code on Symbian Phones]

Related Wiki Articles

No related wiki articles found

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fwikiE2eforumE2enokiaE2ecomE2findeE78E2ephpE2fFileE3aMicrokernelE5fArchitectureE2eGIFX qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqfntypeZWikiContentQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZtypeQUqfntypeZWikiContentQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqfntypeZWikiContentQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ