5

I am away for 2 weeks with my Macbook Pro 13" running OSX 10.6. I want to continue my learning and development of C++ applications. I don't have my applications CD which apparently comes with XCode, so I was hoping someone could help me get up and running developing C++ applications using either Netbeans or Eclipse.

On the Netbeans website, it said I needed to install XCode (not feasible since its a 3.5gb download), and I couldn't find a C++ compiler download for Eclipse, or instructions on how to install it after I DO find one.

Can someone help? Thanks

shadowprotocol
  • 245
  • 2
  • 7
  • why not just use vim and g++ on the command line? you'll learn a lot more that way than using a pretty ide i guarantee you :P – Robert S Ciaccio Dec 07 '10 at 22:52
  • I vaguely remember entering g++ into the terminal and getting nothing. I don't have a C++ compiler installed on my computer yet -- thats the problem. – shadowprotocol Dec 07 '10 at 22:55
  • @calavera - you need to install the XCode tools to get GCC on a Mac. @shadowprotocol - can you use clang? I forget if OSX 10.6 comes with clang c++ by default. – wkl Dec 07 '10 at 22:58
  • @shadowprotocol: definitely follow Charlie Martin's advice and install MacPorts. I believe it will install all the gcc compiler stuff without you having to do anything else. If you then want to play around with programming in the latest version of vim, do `sudo port install vim`. – Robert S Ciaccio Dec 07 '10 at 22:59
  • @birryee: i forgot it's not on there by default... i installed xcode and macports so long ago :) vim is there, however it's 7.2 I think. MacPorts has the latest. – Robert S Ciaccio Dec 07 '10 at 23:01
  • 1
    possible duplicate: http://stackoverflow.com/questions/114884/is-there-a-way-to-install-gcc-in-osx-without-installing-xcode – ergosys Dec 07 '10 at 23:10
  • 1
    You can download XCode for free at http://developer.apple.com/devcenter/mac/index.action – Seth Johnson Dec 08 '10 at 00:31
  • MacPorts also requires XCode to compile anything. – Matt K Dec 08 '10 at 01:17
  • @Matt: But he said he didn't want a 3 GB download. – Zan Lynx Dec 08 '10 at 01:18
  • Uh, yes, that's why MacPorts is not an option either. – Matt K Dec 08 '10 at 02:04
  • Come to think of it, aren't all the development tools on the OS/X DVD now a days? WHy not just install from there? – Charlie Martin Dec 08 '10 at 23:43
  • @Charlie: he said he doesn't have the CD. – Robert S Ciaccio Dec 09 '10 at 07:47

5 Answers5

2

Go to a local retailer that sells Apple products and buy a Snow Leopard DVD. It will have the developer tools on it, albeit not the newest version. $30 US seems like a reasonable trade for two weeks of productivity.

karunski
  • 3,980
  • 2
  • 17
  • 10
1

I think you want the Eclipse C/C++ Development tools:

http://www.eclipse.org/cdt/

hithere
  • 520
  • 4
  • 17
0

If you have internet access while you're away, and don't want to install anything, just use an online compiler. See this question for suggestions.

Community
  • 1
  • 1
Useless
  • 64,155
  • 6
  • 88
  • 132
0

You can pick up MacPorts, which will install the gcc tools in command-line versions. There's undoubtedly a way to get Eclipse to use it,

Charlie Martin
  • 110,348
  • 25
  • 193
  • 263
0

LLVM has Mac binaries. You could then use LLVM and Clang to build GCC from source if you prefer. But ouch.

Matt K
  • 13,370
  • 2
  • 32
  • 51