Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7639545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:26:44+00:00 2026-05-31T08:26:44+00:00

Anyone know of an example project of a Objective-C project calling Objective-C++ code. I’ve

  • 0

Anyone know of an example project of a Objective-C project calling Objective-C++ code.

I’ve read all the stackoverflow q’s about getting one to call the other but no luck.
Would help if I had a code sample that worked.

The Obj-C++ I have is a lib .a and some c++ headers. Thats all.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T08:26:46+00:00Added an answer on May 31, 2026 at 8:26 am

    Here’s example project I made, it’s actually easy to undestand, you can just rename your classes from .m to .mm or in project settings set “Compile sources as” to Objective-C++. I have had some trouble with C++ headers which didn’t have C++ implementation as well – changing settings to compile everything as Objective-C++ helped.

    Here’s the code https://github.com/libec/StackOverflow/tree/master/03-Obj-C%2B%2B

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know a good online resource for example of R code? The programs
I am having problems finding an example project that uses NHibernate 2.1.0. Anyone know
Does anyone know how to include NUnit (for example) as one of the available
Does anyone know good example of using CSS to create rounded corner box where:
Does anyone know of an example where it is shown how to drag a
Does anyone know of an example of how to do the page/view counter (little
Does anyone know of a good example implementation of the Service Location Protocol that
Does anyone know of a good example of how to expose a WCF service
Does anyone know where I can find an example of how to determine if
Does anyone know where I can find an example or a tutorial of building

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.