Results 1 to 2 of 2
Discuss porting C++ code to objective-C at the iPhone Developer Exchange - Hackint0sh.org; My source code heavily uses C++ templates. I need to port those to the iPhone ...
  1. #1
    Newbie Array

    Join Date
    Jul 2008
    Posts
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default porting C++ code to objective-C

    My source code heavily uses C++ templates. I need to port those to the iPhone which uses Objective-C. I read that Objective-C can mixed with C++ code. What does that mean exactly? Can I still use my C++ template code?



  2. #2
    Newbie Array

    Join Date
    Jan 2008
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    You can use c++ code in objective-c.
    Just make the file with extension .mm instead of .m.
    Also compile with g++ instead of gcc.

 

 

Similar Threads

  1. Slashdot: Objective-C Enters Top Ten In Language Popularity
    By hackint0sh in forum Latest Headlines
    Replies: 0
    Last Post: 06-02-2010, 10:30 PM
  2. Convert C - style functions in Objective-C
    By toohtik in forum iPhone Developer Exchange
    Replies: 0
    Last Post: 05-13-2009, 11:34 AM
  3. [iphone objective-c] Access to calendar from SDK?
    By craigp in forum iPhone Developer Exchange
    Replies: 4
    Last Post: 04-08-2009, 12:24 PM
  4. [Objective C] Simple question
    By denial in forum iPhone Developer Exchange
    Replies: 1
    Last Post: 05-22-2008, 01:43 AM
  5. Replies: 0
    Last Post: 01-02-2008, 01:31 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 06:32 PM.
twitter, follow us!