Very new at this, any help would be appreciated.

bellybat
Unregistered
 
Post: #1
I recently got the urge to learn programming languages (particularly C++ to start with) in order to make my own games. The problem is, I'm running on a rickety old iBook with 10.1.5. I hope to eventually get out of the Jurassic age and buy an iMac or G5 with Tiger, but for now I'm stuck with what I've got.

On to the real issue. I installed the Developer Tools which came with the 10.1 disc hoping I could at least get a start there, but no such luck. I can't even get the Hello World program to build in Project Builder without aprox. 77 errors coming up, let alone any other tutorials I've found. I thought perhaps if I could find the December 2001 tools and install those instead it might work, but as everybody knows that's pretty much extinct. I'll gladly put up the build log here if anyone thinks they might be able to solve this annoying problem. I've had a very difficult time finding any other compilers that will run on this dinosaur.

Thanks!
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
Unfortunately, the earliest dev tools on ADC is December 2002 (req. 10.2.x).

Paste your errors; I doubt there's anything radically wrong with what you have.
Quote this message in a reply
bellybat
Unregistered
 
Post: #3
/usr/bin/jam -d1 JAMBASE=/Developer/Makefiles/pbx_jamfiles/ProjectBuilderJambase JAMFILE=- build ACTION=build TARGETNAME=test NATIVE_ARCH=ppc BUILD_STYLE=Development CPP_HEADERMAP_FILE=/Users/danielle/test/build/intermediates/test.build/Headermaps/test.hmap DSTROOT=/ OBJROOT=/Users/danielle/test/build/intermediates SRCROOT=/Users/danielle/test SYMROOT=/Users/danielle/test/build
...updating 9 target(s)...
BuildPhase test
Completed phase <CopyHeaders> for test
CompileCplusplus /Users/danielle/test/build/intermediates/test.build/Objects/ppc/main.o
In file included from /usr/include/gcc/darwin/2.95.2/g++/libio.h:30,
from /usr/include/gcc/darwin/2.95.2/g++/streambuf.h:36,
from /usr/include/gcc/darwin/2.95.2/g++/iostream.h:31,
from /usr/include/gcc/darwin/2.95.2/g++/iostream:6,
from main.cpp:1:
/usr/include/gcc/darwin/2.95.2/g++/_G_config.h:4: sys/types.h: No such file or directory
/usr/include/gcc/darwin/2.95.2/g++/_G_config.h:85: stddef.h: No such file or directory
In file included from /usr/include/gcc/darwin/2.95.2/g++/streambuf.h:36,
from /usr/include/gcc/darwin/2.95.2/g++/iostream.h:31,
from /usr/include/gcc/darwin/2.95.2/g++/iostream:6,
from main.cpp:1:
/usr/include/gcc/darwin/2.95.2/g++/libio.h:59: sys/cdefs.h: No such file or directory
/usr/include/gcc/darwin/2.95.2/g++/libio.h:275: stdio.h: No such file or directory
In file included from /usr/include/gcc/darwin/2.95.2/g++/libio.h:30,
from /usr/include/gcc/darwin/2.95.2/g++/streambuf.h:36,
from /usr/include/gcc/darwin/2.95.2/g++/iostream.h:31,
from /usr/include/gcc/darwin/2.95.2/g++/iostream:6,
from main.cpp:1:
/usr/include/gcc/darwin/2.95.2/g++/_G_config.h:24: syntax error before `;'
/usr/include/gcc/darwin/2.95.2/g++/_G_config.h:29: syntax error before `;'
In file included from /usr/include/gcc/darwin/2.95.2/g++/streambuf.h:36,
from /usr/include/gcc/darwin/2.95.2/g++/iostream.h:31,
from /usr/include/gcc/darwin/2.95.2/g++/iostream:6,
from main.cpp:1:
/usr/include/gcc/darwin/2.95.2/g++/libio.h:238: syntax error before `;'
/usr/include/gcc/darwin/2.95.2/g++/libio.h:298: `seek' was not declared in this scope
/usr/include/gcc/darwin/2.95.2/g++/libio.h:298: type specifier omitted for parameter
/usr/include/gcc/darwin/2.95.2/g++/libio.h:298: function `int _G_fpos_t(_IO_FILE *, int)' is initialized like a variable
/usr/include/gcc/darwin/2.95.2/g++/libio.h:316: syntax error before `('
/usr/include/gcc/darwin/2.95.2/g++/libio.h:317: syntax error before `('
/usr/include/gcc/darwin/2.95.2/g++/libio.h:318: syntax error before `('
/usr/include/gcc/darwin/2.95.2/g++/libio.h:336: syntax error before `('
/usr/include/gcc/darwin/2.95.2/g++/libio.h:337: syntax error before `('
/usr/include/gcc/darwin/2.95.2/g++/libio.h:338: syntax error before `('
/usr/include/gcc/darwin/2.95.2/g++/libio.h:339: syntax error before `('
/usr/include/gcc/darwin/2.95.2/g++/libio.h:341: syntax error before `('
/usr/include/gcc/darwin/2.95.2/g++/libio.h:347: syntax error before `('
/usr/include/gcc/darwin/2.95.2/g++/libio.h:348: syntax error before `('
/usr/include/gcc/darwin/2.95.2/g++/libio.h:349: syntax error before `('
/usr/include/gcc/darwin/2.95.2/g++/libio.h:363: syntax error before `('
/usr/include/gcc/darwin/2.95.2/g++/libio.h:364: syntax error before `('
/usr/include/gcc/darwin/2.95.2/g++/libio.h:365: syntax error before `('
/usr/include/gcc/darwin/2.95.2/g++/libio.h:366: syntax error before `('
/usr/include/gcc/darwin/2.95.2/g++/libio.h:372: syntax error before `__P'
/usr/include/gcc/darwin/2.95.2/g++/libio.h:373: syntax error before `__P'
/usr/include/gcc/darwin/2.95.2/g++/libio.h:376: syntax error before `('
In file included from /usr/include/gcc/darwin/2.95.2/g++/iostream.h:31,
from /usr/include/gcc/darwin/2.95.2/g++/iostream:6,
from main.cpp:1:
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:77: syntax error before `;'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:78: syntax error before `;'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:370: `streampos' declared as a `virtual' field
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:370: parse error before `('
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:371: `streampos' declared as a `virtual' field
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:371: declaration of `int streambuf::streampos'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:370: conflicts with previous declaration `int streambuf::streampos'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:371: parse error before `('
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:373: syntax error before `('
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:371: duplicate member `streambuf::streampos'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h: In method `void streambuf::setg(char *, char *, char *)':
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:335: implicit declaration of function `int _IO_free_backup_area(...)'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h: At top level:
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:375: syntax error before `('
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:377: syntax error before `('
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:378: syntax error before `('
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:379: virtual outside class declaration
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:380: virtual outside class declaration
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:381: virtual outside class declaration
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h: In function `int unbuffered()':
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:386: `_flags' undeclared (first use this function)
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:386: (Each undeclared identifier is reported only once
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:386: for each function it appears in.)
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:386: warning: control reaches end of non-void function `unbuffered()'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h: In function `int linebuffered()':
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:387: warning: control reaches end of non-void function `linebuffered()'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h: In function `int allocate()':
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:393: implicit declaration of function `int base(...)'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h: In function `void allocbuf()':
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:396: warning: NULL used in arithmetic
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:396: implicit declaration of function `int doallocbuf(...)'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h: In function `int in_avail()':
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:398: `_IO_read_end' undeclared (first use this function)
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:398: `_IO_read_ptr' undeclared (first use this function)
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:398: warning: control reaches end of non-void function `in_avail()'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h: In function `int out_waiting()':
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:399: `_IO_write_ptr' undeclared (first use this function)
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:399: `_IO_write_base' undeclared (first use this function)
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:399: warning: control reaches end of non-void function `out_waiting()'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h: In function `streamsize sputn(const char *, int)':
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:400: implicit declaration of function `int xsputn(...)'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h: In function `streamsize padn(char, int)':
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:401: invalid use of `this' in non-member function
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:401: implicit declaration of function `int _IO_padn(...)'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:401: warning: control reaches end of non-void function `padn(char, int)'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h: In function `streamsize sgetn(char *, int)':
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:402: invalid use of `this' in non-member function
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:402: implicit declaration of function `int _IO_sgetn(...)'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:402: warning: control reaches end of non-void function `sgetn(char *, int)'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h: In function `int sputc(int)':
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:407: invalid use of `this' in non-member function
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:407: implicit declaration of function `int _IO_putc(...)'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:407: warning: control reaches end of non-void function `sputc(int)'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h: In function `int sbumpc()':
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:408: invalid use of `this' in non-member function
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:408: implicit declaration of function `int _IO_getc(...)'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:408: warning: control reaches end of non-void function `sbumpc()'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h: In function `int sgetc()':
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:409: invalid use of `this' in non-member function
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:409: invalid use of `this' in non-member function
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:409: invalid use of `this' in non-member function
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:409: implicit declaration of function `int __underflow(...)'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:409: invalid use of `this' in non-member function
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:409: warning: control reaches end of non-void function `sgetc()'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h: In function `int snextc()':
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:411: invalid use of `this' in non-member function
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:413: warning: control reaches end of non-void function `snextc()'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h: At top level:
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:423: virtual outside class declaration
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:424: virtual outside class declaration
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:425: syntax error before `('
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:426: virtual outside class declaration
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:427: virtual outside class declaration
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:432: parse error before `}'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:458: `streampos' declared as a `virtual' field
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:458: parse error before `('
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:471: `streampos' declared as a `virtual' field
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:471: declaration of `int filebuf::streampos'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:458: conflicts with previous declaration `int filebuf::streampos'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:471: parse error before `('
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:471: duplicate member `filebuf::streampos'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:501: parse error before `}'
In file included from /usr/include/gcc/darwin/2.95.2/g++/iostream:6,
from main.cpp:1:
/usr/include/gcc/darwin/2.95.2/g++/iostream.h:74: `streampos' was not declared in this scope
/usr/include/gcc/darwin/2.95.2/g++/iostream.h:74: confused by earlier errors, bailing out
{standard input}:unknown:Undefined local symbol L_base$stub
{standard input}:unknown:Undefined local symbol L_doallocate__Fv$stub
{standard input}:unknown:Undefined local symbol L_doallocbuf$stub
{standard input}:unknown:Undefined local symbol L_xsputn$stub

/usr/bin/cc -c "-F/Users/danielle/test/build/ProjectHeaders" "-F/Users/danielle/test/build" "-I/Users/danielle/test/build/ProjectHeaders/test" "-I/Users/danielle/test/build/include" "-arch" "ppc" "-fno-common" "-fpascal-strings" "-O0" "-Wmost" "-Wno-four-char-constants" "-Wno-unknown-pragmas" "-pipe" "-g" "-precomp-trustfile" "/Users/danielle/test/build/intermediates/test.build/TrustedPrecomps.txt" "-Wp,-header-mapfile,/Users/danielle/test/build/intermediates/test.build/Headermaps/test.hmap" "-I/Users/danielle/test/build/intermediates/test.build/DerivedSources" "main.cpp" -o "/Users/danielle/test/build/intermediates/test.build/Objects/ppc/main.o"

...failed CompileCplusplus /Users/danielle/test/build/intermediates/test.build/Objects/ppc/main.o ...
Quote this message in a reply
Sage
Posts: 1,403
Joined: 2005.07
Post: #4
Quote:I'm running on a rickety old iBook with 10.1.5. I hope to eventually get out of the Jurassic age
LOL, Jurassic age HARDLY.

Sir, e^iπ + 1 = 0, hence God exists; reply!
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #5
It looks from those errors as if you don't have the standard C library headers installed?

Take a look in /usr/include, you should see stddef.h, stdio.h, stdlib.h, string.h, etc. If not, something isn't installed correctly. Could be the developer tools, could be the "BSD subsystem" optional install from Mac OS X itself.

If you do have those files, something more sinister is afoot ^_^
Quote this message in a reply
bellybat
Unregistered
 
Post: #6
The only file I found with Sherlock was stdio.h, and I don't think it was where it was supposed to be. The rest couldn't be located at all. Do you recommend re-installing Developer tools and the BSD install from the discs?
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #7
I recommend actually looking in /usr/include, either with the terminal or with the Finder's "go to folder" command first Rasp

But yes, if they're not in /usr/include, you should try reinstalling the dev tools and the BSD subsystem.
Quote this message in a reply
bellybat
Unregistered
 
Post: #8
If you could see this laptop you'd be laughing even harder, my friend. It's missing keys, the internal cd drive is shot, and as you know Mac has practically disowned 10.0 and 10.1 like an ugly step-child.
Quote this message in a reply
bellybat
Unregistered
 
Post: #9
OneSadCookie Wrote:I recommend actually looking in /usr/include, either with the terminal or with the Finder's "go to folder" command first Rasp

But yes, if they're not in /usr/include, you should try reinstalling the dev tools and the BSD subsystem.

They don't seem to be there, so I'll give re-installing a shot. Thanks much for the help! I'll let you know what happens. Smile
Quote this message in a reply
bellybat
Unregistered
 
Post: #10
Well, as I mentioned to Unknown, my internal cd drive went to Mac Heaven, and I've been having trouble with my external cd-rw drive too. It doesn't look like I'll be pulling anything off of the installer discs anytime soon. So sad for me.Cry
Quote this message in a reply
Sage
Posts: 1,403
Joined: 2005.07
Post: #11
One possibility is firewire target disk mode if someone can bring a mac laptop nearby and one of you has a firewire cable. Theres hope yet for the Diplodocus. Smile

Sir, e^iπ + 1 = 0, hence God exists; reply!
Quote this message in a reply
bellybat
Unregistered
 
Post: #12
Ah, that would be fantastic, save for the fact there isn't another Mac user (that I know of) for miles around. My friends all have PCs and cringe at the thought of using anything else, the poor fools, haha.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #13
Where in the US are you? There's people here from all over the place; you might find someone closer than you think Smile
Quote this message in a reply
bellybat
Unregistered
 
Post: #14
I'm in NE Ohio, or "The Heart of it All", as they say. Though I've yet to figure out what 'it all' is, haha. The "Heart of the Malls" would be more like it, really.
Quote this message in a reply
Post Reply