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

  • Home
  • SEARCH
  • 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 8895527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:48:14+00:00 2026-06-14T23:48:14+00:00

I have a question and I could not find a solution, so I ask

  • 0

I have a question and I could not find a solution, so I ask here 🙂

I want to create an Foundation-based terminal application/script using Xcode–>Mac–>New–>Command Line Tool–>Foundation

This works and all, but then I want to ADD header.h files to my project.
One of this header.h files does the following:

#include <iostream>

This fails with the error: iostream file not found.

For a test I make a new c++ based terminla script and it does exactly the same:

#include <iostream>

But for some unknown reason it does not fail with an error.
Can anyone tell me, why the c++ script works to include and the objective c not?

objective c: .h file
c++: .cpp file
I renamed the .h to .cpp but then it does not find the NSString and such things.. any solution to use iostream and objective c?

I really need that, thanks

  • 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-06-14T23:48:15+00:00Added an answer on June 14, 2026 at 11:48 pm

    If you want to use both Objective-C and C++ (called Objective-C++) from within the same source module, then use the .mm file extension.

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

Sidebar

Related Questions

This question may have been asked already - but unfortunately, I could not find
I have the following problem and I could not find a solution anywhere. I
I know this is a common question but I could not find the solution
Ok, this is a very easy question for which I could not find the
i have searched a lot but could not find the exact way to do
This may be a basic question, but I could not find an answer for
I have spent a lot of time looking for a solution, but could not
I have this question: How could I call a codebehind method from jquery? I
I have a question. How could I get the data from a google search
I have a rather simple question that I could normally debug myself, but I

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.