View Full Version : C++ Compiler
dnaustin
Sep 28, 2003, 02:00 PM
I am looking for a good low cost C++ compiler that will run on OS 10. Something similar to the old "Think C++" or "Turbo C++". I need this as a learning tool for a programming class. There used to be several available for the Mac but now I can't find anything. It is frustrating that I can download one for free for the PC (Borland's C++ 5.5) but can't find anything for the Mac except very expensive high end development systems. Any help wll be appreciated.
mikeyredk
Sep 28, 2003, 02:38 PM
use projectbuilder its great and FREE
FattyMembrane
Sep 28, 2003, 02:44 PM
like mikeyredk said, osx comes with one of the greatest development environments around for free. if osx came with your computer, you probably don't have a dev tools cd, so you'll have to register with the Apple Developer Connection (free at developer.apple.com) and download the disk image of the tools. it includes the basic command-line gcc compiler as well as the project builder IDE.
Cubeboy
Sep 28, 2003, 07:26 PM
The codewarrior compiler is very nice; fast build speeds, excellent portability, and no problems digesting code whatsoever (in my short experience with it at least). Of course, you have to purchase the entire development studio which is priced at $399 for the OSX only target version.
So the question is, would this be in your price range?
mikeyredk
Sep 28, 2003, 07:41 PM
how is code warrior always wanted to try it
bousozoku
Sep 28, 2003, 07:48 PM
Originally posted by mikeyredk
how is code warrior always wanted to try it
CodeWarrior is okay, but just.
They have great, wonderful compilers and a so-so development environment and poor application framework.
I've used it since Developer Release 10 and it hasn't improved much since then. It's kind of like Quark XPress for programmers--they got the majority of the market and sat on it.
Pismo
Sep 28, 2003, 08:48 PM
I've been using CodeWarrior for a few years now and I really like the interface. I also find the debugger easy to work with. I am currently using CodeWarrior 8 as well as Developer Tools. The only I don't like about CW is that I've had problems running updates released by Metrowerks.
Xcode will replace my CodeWarrior and my Dev Tools as soon as Panther is released.
mikeyredk
Sep 29, 2003, 07:15 AM
okay good now that i have rounded up some programers help
is there a trace through feature in project builder?
and what about a watch window?
robbieduncan
Sep 29, 2003, 08:04 AM
Originally posted by mikeyredk
okay good now that i have rounded up some programers help
is there a trace through feature in project builder?
and what about a watch window?
Not sure of all of the terminoligy here buy yes it has a full debugger where you can execute the code line by line and see the contents of variables. Is this what you want? If you have experience of gdb (the GNU debugger) then you will be at home as the GUI is simply a nice front end onto gdb.
Some details and screenshots of XCode (new version of Project Bulder) here: http://www.apple.com/macosx/panther/xcode.html Unfortunatly no shots of the debugger!
dnaustin
Sep 29, 2003, 01:28 PM
Per mikeyredk & FattyMembrane's suggestion I installed the Mac Developmet Tools. In addition to being free it looks great. It has several tutorials go get you started and has tons of documentation. I can't find the command line gcc compiler but the IDE includes the C++ environment.
mikeyredk
Sep 29, 2003, 03:58 PM
Originally posted by robbieduncan
Not sure of all of the terminoligy here buy yes it has a full debugger where you can execute the code line by line and see the contents of variables. Is this what you want? If you have experience of gdb (the GNU debugger) then you will be at home as the GUI is simply a nice front end onto gdb.
Some details and screenshots of XCode (new version of Project Bulder) here: http://www.apple.com/macosx/panther/xcode.html Unfortunatly no shots of the debugger!
a watch window is where you watch a certain variable while your program runs
i can't seem to be able to use the trace feature meaning going line by line through the program
i want to be aable to use both of these together
robbieduncan
Sep 30, 2003, 03:58 AM
Originally posted by mikeyredk
a watch window is where you watch a certain variable while your program runs
i can't seem to be able to use the trace feature meaning going line by line through the program
i want to be aable to use both of these together
Are you using Project Builder (and if so which version with which gcc?) or XCode beta? I think the process is the same for both: set a breakpoint at the start of the code you want to step through. Check the project settings and ensure that you are at the minimum optimisation level and you have debugging symbols turned on. Clean the project (icon looks like a broom). Build and run in debug mode (the icon that looks like a spray can: there should be 2 icons one to build debug and one to build and run debug).
mikeyredk
Sep 30, 2003, 09:25 AM
i can't get it to stop im am using the xcode beta
i created the breakpoints
i cleaned all the targets
i hit the build and debug spray can and nothing
https://cms.psu.edu/AngelUploads/Files/msa173/Picture%201.jpg
caveman_uk
Sep 30, 2003, 10:10 AM
Is the xcode beta available anywhere except the subscription ADC site? I'm hoping for legal sites but otherwise will do if nothing else:rolleyes:
I fancy a bit of a play with it :D
mikeyredk
Sep 30, 2003, 10:18 AM
its legal my friends let me in on it
caveman_uk
Sep 30, 2003, 10:20 AM
I wasn't actually questioning the legality of your copy. I was asking if there was anywhere I could get hold if it;)
bousozoku
Sep 30, 2003, 12:16 PM
Originally posted by mikeyredk
i can't get it to stop im am using the xcode beta
i created the breakpoints
i cleaned all the targets
i hit the build and debug spray can and nothing
If this is an example of what's not working, you should put the breakpoints on statements, not comments.
By the way, there is no public beta for xcode. Besides, you shouldn't expect things in beta to work perfectly. That's why it's a beta test.
mikeyredk
Sep 30, 2003, 01:59 PM
i did it did the same thing
i also tried this on project builder
here is another shot
https://cms.psu.edu/AngelUploads/Files/msa173/Picture%202.jpg
robbieduncan
Sep 30, 2003, 02:54 PM
Your debugger might well be hosed: note the debugger has exited due to sigtrap message.
robbieduncan
Sep 30, 2003, 03:00 PM
Here is the debugger working on the basic C++ template in XCode on Panther (for me: iBook 800, 640Mb) (50% due to max file size limit):
mikeyredk
Sep 30, 2003, 03:26 PM
okay thx for the help but i get the same error under jag also with project builder
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.