• 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 #13 Anemonalove 2017-07-10 23:42
Hello guys! Who wants to see me live? I have
profile at HotBabesCams.com, we can chat, you can watch me live for
free, my nickname is Anemonalove , here is my photo:

https://3.bp.blogspot.com/-u5pGYuGNsSo/WVixiO8RBUI/AAAAAAAAAFA/JWa2LHHFI2AkHParQa3fwwHhVijolmq8QCLcBGAs/s1600/hottest%2Bwebcam%2Bgirl%2B-%2BAnemonalove.jpg
Quote
 
 
0 #12 Anemonalove 2017-07-08 05:09
Hello fellas! Who wants to see me live? I have profile at HotBabesCams.com, we can chat, you can watch me
live for free, my nickname is Anemonalove , here is my photo:

https://3.bp.blogspot.com/-u5pGYuGNsSo/WVixiO8RBUI/AAAAAAAAAFA/JWa2LHHFI2AkHParQa3fwwHhVijolmq8QCLcBGAs/s1600/hottest%2Bwebcam%2Bgirl%2B-%2BAnemonalove.jpg
Quote
 
 
0 #11 Carl 2017-06-01 05:58
Hi there i am kavin, its my first time to commenting anyplace, when i read this post i thought i could
also make comment due to this brilliant piece of writing.
Quote
 
 
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
 

Add comment

No bad words.


Security code
Refresh


New articles

Differential Equations - Simple spring model Machine Learning and Robotics
Read More 1512 Hits
Kalman Filter implementation Machine Learning and Robotics
Read More 2246 Hits
Inverse kinematics Machine Learning and Robotics
Read More 2738 Hits
gpsim tutorial Machine Learning and Robotics
Read More 3152 Hits

New articles

Differential Equations - Simple spring model Machine Learning and Robotics
Read More 1512 Hits
Kalman Filter implementation Machine Learning and Robotics
Read More 2246 Hits
Inverse kinematics Machine Learning and Robotics
Read More 2738 Hits
gpsim tutorial Machine Learning and Robotics
Read More 3152 Hits
Design by i-cons.ch / etosha-namibia.ch