• Increase font size
  • Default font size
  • Decrease font size

My experience with Objective-C in Code Block

Recently I ran into a problem how to compile Objective-C code together with an existing C++ code. Here are my notes:

 

Immediately after I have started I found this http://wiki.codeblocks.org/index.php?title=Installing_Objective-C_Compiler . It is very good guide to set up the CB IDE to use Objecive-C. However I had to deal some issius:

[1] Setup the compiler

1) Navigate to Settings->Compiler and debugger.

2) Select GNU GCC Compiler and make a copy of it; Use this name in *.cbp project file in tag: <Option compiler="gcc_with_obj_c" />

3) Under Linker Settings, add -lobjc to Other linker options; you don't need to explicitly add the libobjc.a library, as the flag tells gcc to include it for us.

 

[2] Add filetype support

1) Go to Settings->Environment.

2) Select Files extension handling and add *.mm (*.m did not work for me)

3) Go to Project->Project tree->Edit file types & categories.

4) Under Sources, add *.mm to the list of filetypes.

 

[3] Syntax hightning

1) Go to Settings->Editor...

2) Select Syntax highlighting and go to Filemasks.... Add *.mm to the list of filetypes.

3) Go to Keywords... (next to Filemasks...) and create a new set (up arrow).

Add this to the Keywords:

@implementation @interface @end @class @selector @protocol @public @protected @private id BOOL YES NO SEL nil NULL self

 

[4] Notes

... will be available soon.
 

Comments  

 
0 #10 free iphone 6 2016-01-26 04:55
This is a topic that's close to my heart...
Take care! Where are your contact details though?

My homepage - free iphone 6: https://www.youtube.com/watch?v=j1XpP_PYmfs
Quote
 
 
0 #9 Hilton 2016-01-19 13:51
In 2002, The Lancet claimed that conflicting interests between drug companies and health
care providers had "heavily, and damagingly" influenced the practice of medicine.
Lean meats also have Leucine, an amino acid that helps your muscles
use glucose instead of storing it as fat. Selecting the very best protein powder for fat burning is necessary in accomplishing a successful outcome to your goals.


My website lose weight program in the gym; Hilton: http://s3.amazonaws.com/shedbuilder/index/174.html,
Quote
 
 
0 #8 Getting Oral Surgery 2015-11-20 01:29
Very soon this site will be famous among all blog people, due to it's good
articles
Quote
 
 
0 #7 Pro Brain 2015-09-17 18:12
Hey! This is kind of off topic but I need some help from
an established blog. Is it very hard to set up your own blog?
I'm not very techincal but I can figure things out pretty fast.
I'm thinking about setting up my own but I'm not sure where to begin. Do
you have any tips or suggestions? Appreciate it
Quote
 
 
0 #6 Alvena Skincare 2015-09-06 18:48
Great website. A lot of useful info here. I am sending it to some friends ans also sharing in delicious.

And of course, thanks on your sweat!
Quote
 
 
0 #5 Cogniq XL 2015-08-16 23:32
I know this web page offers quality dependent articles or reviews and
other stuff, is there any other web site which provides
these data in quality?
Quote
 
 
0 #4 The Best Popular 2015-07-26 04:57
All screenshots and references from The Sims 3: Outdoor
Living Stuff Pack. There are so many long hairstyles with bangs that can suit your facial shape and give the women a feminine look that can accentuate your facial structure.
It's best if you have blonde hairs as you will get The Best Popular Hairstyle
Haircuts: http://brakodel.info/category/hairstyles-2 gradient option for you blonde hairs.
Quote
 
 
0 #3 viagra 2015-02-16 18:41
Hi pipls!
Quote
 
 
0 #2 http://www.Lolatoys. 2014-12-11 00:45
Woah! I'm really enjoying the template/theme of this blog.

It's simple, yet effective. A lot of times it's challenging to get
that "perfect balance" between superb usability and visual appeal.
I must say you've done a excellent job with this.
In addition, the blog loads extremely quick for me on Chrome.

Outstanding Blog!
Quote
 
 
0 #1 Best skip hire 2014-09-24 04:26
They took down each supplier''s facts and put them altogether of hospitality attire database.

If you are still unsure of what bin size to go for,
then it is always best to choose the larger option just in case.

Now Chertoff works at Covington and Burling and if things heat up
at the Justice Department might find himself working for Khadafy's
touts at Monitor Group.

Look into my site :: Best skip hire website: http://www.bestskiphire.com.au
Quote
 

Add comment

No bad words.


Security code
Refresh


New articles

Differential Equations - Simple spring model Machine Learning and Robotics
Read More 1327 Hits
Kalman Filter implementation Machine Learning and Robotics
Read More 2042 Hits
Inverse kinematics Machine Learning and Robotics
Read More 2487 Hits
gpsim tutorial Machine Learning and Robotics
Read More 590 Hits

New articles

Differential Equations - Simple spring model Machine Learning and Robotics
Read More 1327 Hits
Kalman Filter implementation Machine Learning and Robotics
Read More 2042 Hits
Inverse kinematics Machine Learning and Robotics
Read More 2487 Hits
gpsim tutorial Machine Learning and Robotics
Read More 590 Hits
Design by i-cons.ch / etosha-namibia.ch