• Register
0 votes


Can anyone help me to run C++ Programe on Mac.

How can I run C or C++ in Unix reassure or a Macintosh terminal? 

(I know it, overlook it, and relearn it once more. Time to record it.)

5 1
200 points

Please log in or register to answer this question.

1 Answer

0 votes


As referenced over, Apple's Xcode is a free, full included IDE for local applications. Be that as it may, it's not hard to squeeze it into administration for starting C++ code on a Mac, and it incorporates a GUI debugger. Note that Xcode is planned explicitly for engineers to compose macOS, iOS, tvOS and watchOS applications in Swift or Objective-C. Thus, it's not generally utilized in industry or instruction as a C++ advancement framework. In those circumstances, the attention is on Linux and Java-based IDEs. In any case, Xcode is free, ground-breaking and ends up being incredibly helpful for the understudy with a Mac. All you need is a (free) AppleID and afterward you can download it from the Mac App Store found in macOS: Apple Menu > App Store. The most recent form as of this composing is 8.3.3 and is intended to work with macOS Sierra.

I will explain, how to introduce a C++ compiler on Macintosh. (Since C++ itself is a programming language). On the off chance that you need to arrange C++ code on your Macintosh, at that point you have to introduce Xcode which has the Crash compiler for C/C++. It is an IDE (Coordinated Improvement Condition) where you can compose, order, and run your projects. In the wake of introducing Xcode, you may even utilize a content manager to compose and the Terminal to arrange/run C++ programs. Xcode can be downloaded from the Application Store on your Macintosh. You can likewise basically introduce the xcode order line instruments on the off chance that you don't need the entire IDE. You can likewise introduce compilers utilizing famous macOS bundle directors like MacPorts and Homebrew.


Introduce Xcode from Application Store. 

At that point open it and make another task, there select new terminal application, use c++ in language inclination, and presto you're all set. 

You can use code squares to incorporate your projects as well!!

460 points

Related questions

0 votes
1 answer 26 views
Problem: I am little bit confused, which is correct answer? Which early browser was the first to run on multiple computer platforms including Windows?​ ​a) Mosaic b) Internet Explorer c) none of the above d) Safari
asked Feb 21, 2020 maddi86 5.4k points
0 votes
1 answer 59 views
Problem: I have been doing the programming in JAVA and Python, coding the programs in Notepad++ and compiling them using command prompt command and it is working absolutely fine. Now, I wanted to run C++ code in CMD but failed do so as I was doing for Java and Python. Can anyone help me with the problem of how to run the C++ program in cmd?
asked Oct 8, 2020 sikandar 2.4k points
0 votes
1 answer 51 views
Problems: Can anyone give the right solution by filling in the blanks? Deleted files on a mac computer are moved to the ________?
asked Feb 14, 2020 maddi86 5.4k points
0 votes
1 answer 32 views
PROBLEM: How to compile and run C / C ++ on a Mac Unix console / terminal? How can I compile / run C or C ++ on Unix console or Mac terminal?
asked Aug 31, 2020 sasha 5.3k points
0 votes
1 answer 55 views
Problem: Which device file below represents the first primary partition on the second pata hard disk drive? Does any one know about this device name?
asked Feb 19, 2020 maddi86 5.4k points
0 votes
1 answer 3 views
Problem: I know that everyone uses an IDE nowadays, but I just find it simpler to write my code in notepad++, compile it using a command prompt command, and run it from there too. At least that works for Java and Python. I've tried to get my head around how to do that ... please don't post answers and comments about how IDEs are better - I know they are. I'm just used to doing it the old way :D
asked Dec 24, 2020 Mashhoodch 5.7k points
0 votes
1 answer 335 views
0 votes
2 answers 30 views
Problem: Can any one help me whether given statement is true or not? A computer connected to a remote hard disk via iSCSI is referred to as an iSCSI initiator? A) True B) False
asked Feb 22, 2020 maddi86 5.4k points
0 votes
1 answer 55 views
Problem: Can any one guide me whether the statement is True or False? After initially installing Windows 7, you need to disable the Guest account so nobody can use it? True False
asked Feb 21, 2020 maddi86 5.4k points
0 votes
1 answer 28 views
Problem: My window is not starting and I tried to troubleshoot but didn’t get my problem solve, can you please tell how can get it solve? A lean operating system that can be used to troubleshoot problems when Windows refuses to start?
asked Feb 19, 2020 maddi86 5.4k points