Forums | MacLife
You are not logged in.
#1 2009-09-06 12:47 pm
- macman2008
- Member

- From: hudson, WI
- Registered: 2008-01-09
- Posts: 49
c++ compilers
are there any c++ compilers that are free and work on ppc macs?
I've been searching and searching, but all i could find is Intel compilers, codewarrior (i could only find updates, not source codes), and eclipse, which doesn't want to compile.
any help?
Offline
#2 2009-09-06 1:29 pm
Re: c++ compilers
You missed the obvious one: the Apple developer tools. You can find the newest for your version of OS X here. (https://connect.apple.com/) Sign up for a free ADC account, then go to the downloads section, go to "Developer Tools" in the bar on the right, then scroll down until you find a version of XCode that supports your version of OS X. For example, XCode 3.1.3 for Leopard (10.5), XCode 2.5 for Tiger (10.4), and XCode 1.5 for Panther (10.3). The farthest back they go is the December 2002 developer tools for Jaguar (10.2).
Offline
#4 2009-09-06 9:37 pm
- macman2008
- Member

- From: hudson, WI
- Registered: 2008-01-09
- Posts: 49
Re: c++ compilers
i know about xcode, but the computer i'm currently working on is a lombard g3 running 10.2.8. whenever i look for the developer tools, it links to xcode, do you have a direct link?
Offline
#5 2009-09-06 10:17 pm
Re: c++ compilers
As I mentioned in my post, the downloads section at connect.apple.com offers the 2002 developer tools for Jaguar. It's the very last download on this page. You're going to have to sign up for the ADC first, though.
Offline
#6 2009-09-08 9:55 am
- macman2008
- Member

- From: hudson, WI
- Registered: 2008-01-09
- Posts: 49
Re: c++ compilers
o.k. so now i have the installer, but when i start to do the actual install, it says that there is a newer program on the harddrive, i didn't install it, and i even tried to run the uninstall script through terminal with %sudo, but it came back with yet another error message that said it has "too many arguments"

Offline
#8 2009-09-10 10:43 am
- macman2008
- Member

- From: hudson, WI
- Registered: 2008-01-09
- Posts: 49
Re: c++ compilers
i'm sure, because my dad did it, and he's as minimalistic as possible
Offline
#9 2009-09-10 6:44 pm
- macman2008
- Member

- From: hudson, WI
- Registered: 2008-01-09
- Posts: 49
Re: c++ compilers
allrighty, on my home mac (g4 ppc, 10.5.7) installed (or at least i think i did) Eclipse IDE for C/C++ , it starts up, and you can make your own code, but when i build and run a program, this comes up :http://i713.photobucket.com/albums/ww136/macman134/Picture1.jpg
any help, or instrunctions to do this right?
or do i need to download something else?
and i don't have admin rights on this computer, so that's a no-go for xcode on this machine.
Offline
#10 2009-09-10 6:45 pm
- macman2008
- Member

- From: hudson, WI
- Registered: 2008-01-09
- Posts: 49
Re: c++ compilers
oops, here it is again
http://i713.photobucket.com/albums/ww13 … cture1.jpg
Offline
#11 2009-09-10 6:50 pm
- macman2008
- Member

- From: hudson, WI
- Registered: 2008-01-09
- Posts: 49
Re: c++ compilers
*grumble, grumble- stupid photobucket*
if that huge screenshot wasn't bir enough, here's another one with different uploading prefrences
http://i713.photobucket.com/albums/ww13 … ure1-1.jpg
Offline
#13 2009-09-10 11:32 pm
Re: c++ compilers
If you're running Mac OS X 10.5, you're going to have to install XCode 3.1.4, which, once again, you can download through (http://connect.apple.com). I can't give you a direct link, since the links are connected through your session (for example, the link I gave for the download page above doesn't work), but the latest version for Leopard was just released so it's on the top of the downloads list.
Just FYI, the XCode developer tools install the compiler. You can't do anything without the compiler, and that includes using 3rd party IDEs such as Eclipse.
Offline
#14 2009-09-12 11:24 am
- macman2008
- Member

- From: hudson, WI
- Registered: 2008-01-09
- Posts: 49
Re: c++ compilers
o.k.
now i've installed xcode, but eclipse still throws an error
http://i713.photobucket.com/albums/ww13 … ure1-2.jpg
Offline
#17 2009-09-12 4:15 pm
- Mr. T
- Best of both worlds

- From: omnipresent
- Registered: 2002-04-02
- Posts: 4219
Re: c++ compilers
macman2008 wrote:
IDE?
Integrated development environment. In other words, the Xcode application. Try it, and try compiling through gcc in the terminal. See if either of those work.
Also, a word of caution: Carbon (Apple's C interface to the GUI, among other things) seems to be deprecated as of 10.6. I don't know anything about your experience level or what you hope to accomplish, but if you need to do any GUI coding, I'd suggest learning Objective-C.
Last edited by Mr. T (2009-09-12 4:17 pm)
while (1) {fork();}
Offline
#18 2009-09-12 6:28 pm
Re: c++ compilers
If you wish to put off learning the Apple libraries, you can still use the universal ANSI libraries to make C++ programs. To do this in XCode, when you create a new project, choose "standard tool" or "command line utility" depending on your version of XCode. Naturally, you won't get a nice GUI, but a terminal window instead.
If you program in OpenGL, you can also use GLUT to create your interface.
On the other hand, learning objective-C and Cocoa is not as difficult as learning C++, and there are a great deal of tutorials and sample code in the XCode help library.
Ho Eyo He Hum
Offline
#19 2009-09-16 7:27 pm
- macman2008
- Member

- From: hudson, WI
- Registered: 2008-01-09
- Posts: 49
Re: c++ compilers
here's a picture
http://i713.photobucket.com/albums/ww13 … ure1-3.jpg
of a build error in xcode, i've updated and made this test:
#include <iostream>
using namespace std;
int main()
{
cout << "TESTING... THIS COMPILER WORKS";
}
the file the window is pointing to is there, so any help?
is there an error in my code? do i need to install enything else?
btw, thanks for helping me out so much, i appreciate it very much.
Offline
#20 2009-09-16 10:24 pm
- jerwin
- Sophist
- From: The Garden of Pure Ideology
- Registered: 2003-01-01
- Posts: 7045
Re: c++ compilers
delete the file main.cp
Last edited by jerwin (2009-09-16 10:25 pm)
Some subjects actually enjoy pain, and withhold information they might otherwise have divulged in order to be punished.
Central Intelligence Agency. (1983). Human Resource Exploitation Training Manual
Offline
#22 2009-09-17 6:25 pm
- macman2008
- Member

- From: hudson, WI
- Registered: 2008-01-09
- Posts: 49
Re: c++ compilers
DELETE it?
why?
should i make a backup?
Offline
#23 2009-09-17 6:30 pm
- macman2008
- Member

- From: hudson, WI
- Registered: 2008-01-09
- Posts: 49
Re: c++ compilers
oh, the main on the testing project- right?
Offline
#24 2009-09-17 6:37 pm
- macman2008
- Member

- From: hudson, WI
- Registered: 2008-01-09
- Posts: 49
Re: c++ compilers
great. it works
do i have to delete that whenever i make a new project or what?
and also, how do you see/view the output?
Offline
