qt4-mac using wrong g++

Frank J. R. Hanstick trog24 at comcast.net
Mon Feb 11 18:41:03 PST 2013


Hello,
	Joshua, whereis behaved exactly as I expected it to.

Command:
	Franks-Power-Mac-G4:~ frank$ /usr/bin/g++ --version
Result:
	powerpc-apple-darwin9-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5577)
	Copyright (C) 2007 Free Software Foundation, Inc.
	This is free software; see the source for copying conditions.  There  
is NO
	warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR  
PURPOSE.

Command:
	Franks-Power-Mac-G4:~ frank$ /usr/bin/g++-4.2 --version
Result:
	powerpc-apple-darwin9-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5577)
	Copyright (C) 2007 Free Software Foundation, Inc.
	This is free software; see the source for copying conditions.  There  
is NO
	warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR  
PURPOSE.

I have both 4.0 and 4.2 in /usr/bin. The gcc, g++, and c++ are aliases  
pointing to either gcc-4.0 or gcc-4.2. Mine happen to be set up to use  
gcc-4.2.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture 2.png
Type: image/png
Size: 82520 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20130211/9baf580d/attachment.png>
-------------- next part --------------




On Feb 11, 2013, at 2:53 PM, Joshua Root wrote:

>> On Feb 11, 2013, at 15:21, Frank J. R. Hanstick wrote:
>>
>>> I thought that MacPorts defaulted to the system gcc default  
>>> setting(s) (limited to Apple certified versions of course) rather  
>>> than a hard coded default setting.
>>
>> The hardcoded default compiler in MacPorts, which varies by Xcode  
>> version, was meant to mirror the default compiler used by that  
>> version of Xcode, but in the case of Leopard there seems to have  
>> been some discrepancy. Perhaps Leopard's Xcode used to default to  
>> gcc 4.0 and then changed to 4.2 later and we didn't notice. I  
>> thought it was that "gcc" on the command line was gcc-4.0 while in  
>> Xcode projects gcc-4.2 was used by default, but I could be mistaken.
>
> Frank expected whereis(1) to behave differently than it in fact does.
> His 'port select' output shows that his 'gcc' is /opt/local/bin/gcc.  
> On
> Leopard, /usr/bin/{gcc,g++} are links to {gcc-4.0,g++-4.0}.
>
> - Josh
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/macports-users

Frank J. R. Hanstick
trog24 at comcast.net






More information about the macports-users mailing list