Mac programming

Pages: 12
Apr 27, 2012 at 12:58pm
Okay so I have a new Max Lion and I would like to be able to do C++ programming on it. For anybody who knows anything about this should know you can't do that. So what im asking is: Do I have to get windows parrallels and windows 7 onto my Mac to be able to do C++ on my mac lab top?
Apr 27, 2012 at 3:06pm
Install XCode 4.1. It's the basic dev tool for OS X. You can use it for C++ development, be be warned that the native language for GUI programing on OS X is Objective C (using Cocoa). You can use C++ (with Carbon), but Cocoa is the way forward.
Apr 27, 2012 at 3:17pm
closed account (1vRz3TCk)
I would like to be able to do C++ programming on it. For anybody who knows anything about this should know you can't do that.
0_o
Wow, speechless.
Apr 27, 2012 at 5:15pm
I have code blocks but working it is so different from Microsoft Developer C++ i can't even start to code. And why speachless?
Apr 27, 2012 at 6:26pm
I think codemonkey was taken aback about the aggressive tone there.

You CAN do C++ programming on mac OS. And you can do it without modifying your setup. Just download Xcode (which is made by apple for mac developers) for free and set up a C++ project.
Last edited on Apr 27, 2012 at 6:26pm
Apr 28, 2012 at 2:12am
Ill try it out and thanks
Apr 30, 2012 at 10:56pm
It's also worth installing MacPorts. It's one of the ways to build certain open source projects. You should also install the command line tools from XCode as the current XCode doesn't set you up for Terminal use.
May 1, 2012 at 1:52am
Well I also hers I could just download Windows Parallel and windows 7 for free
May 1, 2012 at 8:40am
closed account (1vRz3TCk)
AlwaysLearning wrote:
I think codemonkey was taken aback about the aggressive tone there.
No, I was speechless because of the stupidity of the statement.


If you want to develop software for Mac, get xcode and register as an Apple Developer[1] (both free). Obviously registering is not essential but will give you access to a lot of free technical info and tutorials etc.


Westonrwright wrote:
I have code blocks but working it is so different from Microsoft Developer C++ i can't even start to code.

This sounds like you are stuck in in IDE land. I'm guessing that you have used Visual Studio and never realy looked at what it is doing 'for you' so you don't know how to translate this to other IDEs. If this is the case it would be worth doing as kbw says and set up some command line tools and learn what is going on behind the nice GUI IDEs and then you will be able to move from one IDE to another with little fuss.

The best advice I can give, when you come up against something you don't know, read about it, learn it, don't try to bend it to fit what you do know.

--===#####===--

[1] https://developer.apple.com/programs/register/
May 1, 2012 at 10:53am
Windows Parallel and windows 7 are free?
May 1, 2012 at 12:10pm
kbw: not legally
CodeMonkey: the reason i said that was because you can't just instal it onto your computer like you can with windows and you would know that if you had ever just tried to use C++ on macs. You have to go around it with something else like Code blocks or xcode.
May 1, 2012 at 12:12pm
And where would i start with setting up some command line tools and learning what your talking about then
May 1, 2012 at 12:25pm
closed account (1vRz3TCk)
Westonrwright wrote:
kbw: not legally
What?

Westonrwright wrote:
CodeMonkey: the reason i said that was because you can't just instal it onto your computer like you can with windows and you would know that if you had ever just tried to use C++ on macs. You have to go around it with something else like Code blocks or xcode.
By 'it' I assume you mean a C++ compiler...of course you can install it on a Mac.
Code::Blocks and Xcode are just IDEs no 'going around it' needed. Just install your development environment and get on with it.

For the record, Macs are what I use at home and have been coding on them for many years.
May 1, 2012 at 1:17pm
I would like to be able to do C++ programming on it. For anybody who knows anything about this should know you can't do that.
i have been programming on my mac for a year or two now? i have done the impossible? get xcode it is free and works very well.
May 1, 2012 at 3:08pm
kbw: not legally

I don't understand why you'd expect assistance from a bunch of programmers when you've quite blatantly hinted at your intentions to pirate software.
May 2, 2012 at 12:23am
please do not get into an anything. just get xcode and move on.
May 2, 2012 at 5:14pm
Xcode is a very good IDE!
May 2, 2012 at 5:47pm
Oh, don't forget to install support for Command Line tools separately, it took me forever to figure out why I couldn't do C++ on it. Use Xcode, I love it.
May 3, 2012 at 12:05am
Windows Parallel and Windows 7 are both quite expensive for having just bought a 1000$ + Mac. I almost ended up doing that, but I found using Xcode and the ssh command in terminal to connect to my school's server saved me 300$.

If you find the coding to be difficult, download gedit for free and code in there, then copy and paste over. Do not waste your money! You have an amazing machine in front of you.
May 3, 2012 at 1:55am
Any OS allows you to program in C++ and any other language you want to use. An OS that doesn't allow you to program is like a car that doesn't allow you to replace parts. The fact that you are saying you can't program on a Mac is proof you haven't even bothered looking into it. Listen to these guys as they know what they are talking about. I have never used a Mac, but I have Linux and Windows on my computer that I use regularly.
Pages: 12