| OS X - Development and Darwin Discussion and questions about development for Mac OS X. |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: May 30, 2011
Posts: 3
![]() |
Hi, I'm trying to compile some programs which need g++-2.95.
I've downloaded the source for gcc-2.95 (which includes g++-2.95, I think). I don't know what the host option should be for configuring it. Any ideas? (I'm using Snow Leopard, Mac OS X 10.6.7, Kernel Version: Darwin 10.7.3) Thanks!! What I tried so far ...
|
| QUOTE Thanks | |
![]() Member Since: Oct 19, 2008
Location: Ottawa
Posts: 15,463
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 2012 13" MBP (2.5 i5, 8GB)
|
Darwin 10 probably doesn't work because Darwin 10 was released 8 years after GCC 2.95.3. Any particular reason you need such an old version of GCC?
Important Links: Community Guidelines : Use the reputation system if you've been helped. M-F Blog :: Write for the blog :: M-F IRC Channel - Chats every Sunday at 8PM EST. |
| QUOTE Thanks | |
![]() Member Since: May 30, 2011
Posts: 3
![]() |
The software I'm compiling needs "C++ compiler g++-2.95 o g++-2.96." When I try using the default g++ (4.2), it gives a bunch of errors. Now I'm wondering- are there any options I could use for g++ (like -ansi) that might help? Code:
make /usr/bin/g++ -c relax.cc -I/usr/local/leda-4.2/incl -Wall In file included from relax.cc:1: estruc.hh:21: error: ISO C++ forbids declaration of ‘istream’ with no type estruc.hh:21: error: ‘istream’ is neither function nor member function; cannot be declared friend estruc.hh:21: error: expected ‘;’ before ‘&’ token estruc.hh:22: error: ISO C++ forbids declaration of ‘ostream’ with no type estruc.hh:22: error: ‘ostream’ is neither function nor member function; cannot be declared friend ... |
||||
| QUOTE Thanks | |||||
![]() Member Since: Jul 17, 2009
Location: MA
Posts: 6,075
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 27" i7 iMac with 16GB RAM and 1TB HDD, iPhone 3G & 4, iPod Nano 16GB, iPod Shuffle, iPad 2 16GB WiFi
|
You don't need G++ 2.95 for this..you probably need to fix the code you are compiling..
You most likely need to add Code:
using namespace std; stream' and so on..
-- Regards ...Ashwin Be sure to read the Community Guidelines | The more information you provide, the better answers you get, remember GIGO. |
| QUOTE Thanks | |
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| After Installing Snow Leopard Keypad Not Working / Responding | DJ MixxTress | Apple Notebooks | 5 | 06-05-2011 04:23 PM |
| Issues installing snow leopard | kanly123 | OS X - Operating System | 6 | 05-22-2011 05:02 PM |
| Problems with iMac after installing Snow Leopard | Hforth | OS X - Operating System | 2 | 10-22-2010 09:05 AM |
| installing snow leopard while on tiger | willschw | Apple Notebooks | 3 | 12-28-2009 05:39 PM |
| Installing OS X (Snow) Leopard on a Windows-based laptop | iMacWhack | OS X - Operating System | 1 | 09-04-2009 04:05 AM |
All times are GMT -4. The time now is 08:13 AM.
Powered by vBulletin