Question:
hi i need to compile c++ on mac OSX 10.6.8 what should i do?
Amirali Monfared
2011-08-05 01:15:47 UTC
i have XCODE, but i dont know how to see the output... it says build succeeded but i cannot see the output...
i also have eclipse, but when i want to run the program, it says "launch failed, binary not found"...
i am very new to this, and i'm completely clueless... please someone help me?
and remember, assume that you're talking to an old lady who is completely new with this stuff! i don't know anything about anything when it comes to compilers and IDEs and stuff!
Three answers:
?
2011-08-05 01:25:04 UTC
download codeblock on mac and you should be fine



http://www.codeblocks.org/downloads/26
julitz
2016-10-23 12:58:21 UTC
MinGW is the "Minimalist Gnu for residing house windows", a port of the GNU compilers and countless significant Unix-like utilities to residing house windows. you do no longer apply it to a Mac, or on the different non-residing house windows OS. you probable have already got GCC (the GNU Compiler series) on your Mac. Xcode makes use of GCC "under the hood", so in case you have put in Xcode, you have GCC. Open a terminal and take a inspect "g++ --version" on the command line. If that reflects a version variety instead of an unknown command, then try "which g++" to confirm the place this is placed. the different kit are probable there too, and that's the area coaching you're able to configure Eclipse. i've got not got a Mac, yet OSX is outfitted around a Unix kernel. i like Code::Blocks extra acceptable than Eclipse for C++ projects on Linux and residing house windows. the information superhighway web site says the Mac help isn't as physically powerful because of the fact the different objectives, even though it nevertheless may well be a stable gadget for experimenting with code. the only gaping hollow I see is the lack of a stable source code reformatter. possibly refactoring kit too, yet no person looks to do a stable activity of that with C++ projects. desire this helps... Edit: My mistake. I perplexed Eclipse with Netbeans somewhat (offending 2 distinctive dedicated consumer communities, I anticipate.) On a Mac, Eclipse basically helps the Apple GNU toolchain that incorporates Xcode. i'd say to easily try it first. Create a sparkling "hi international" undertaking and spot if it compiles and runs. If Xcode grew to become into put in formerly you put in Eclipse, this could artwork. If no longer, try removing and reinstalling Eclipse. They presently launched a sparkling version, so in case you probably did no longer set up "Indigo" this may well be an hazard to replace.
jplatt39
2011-08-05 01:27:22 UTC
You use the bash shell and type ./ from the directory/folder where the executable was compiled to. The bash shell is the command prompt. Mac OS X is a UNIX and I suggest you learn about using UNIX and the command shell if you are serious about programming for it UNIX is something you should learn.



http://developer.apple.com/internet/opensource/opensourcescripting.html

http://acad.coloradocollege.edu/dept/pc/SciCompLab/UnixTutorial/


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...