Re: GNU Prolog does not compile in gcc 4.0 (default compiler in Mac OS X 10.4 (Tiger))

Paulo Moura <[email protected]>
Newsgroups gmane.comp.gnu.prolog.bugs
Message-ID <[email protected]>
Hi Alain,

> I needed to re-install GNU Prolog on Mac OS X 10.4.1 (Tiger). It  
> appears that it does not compile with gcc 4.0 (the default compiler  
> on Tiger).
>
> The following work around works (although not very elegant) :  
> replace /usr/bin/gcc by a soft link to /usr/bin/gcc-3.3 during the  
> installation/compilation phase, and then revert back to /usr/bin/ 
> gcc soft link to /usr/bin/gcc-4.0.
This is the current workaround on the DarwinPorts portfile for GNU  
Prolog: use gcc 3.3 instead of the default gcc 4.0. However, there is  
no need to manually replacing/changing soft links. Apple provides a  
command that allows you to set the default version of the gcc  
compiler. Just type:

     % man gcc_select

to lear how to use it.

Cheers,

Paulo


-----------------------------------------------------------
Paulo Jorge Lopes de Moura
Dep. of Informatics                   Office 4.3  Ext. 3257
University of Beira Interior          Phone: +351 275319700
6201-001 Covilhã                      Fax:   +351 275319899
Portugal

<mailto:[email protected]>
<http://www.di.ubi.pt/~pmoura>     <http://www.logtalk.org>
-----------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.