bug-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Paulo Moura
Subject: Re: GNU Prolog does not compile in gcc 4.0 (default compiler in Mac OS X 10.4 (Tiger))
Date: Tue, 31 May 2005 20:00:25 +0100


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:address@hidden>
<http://www.di.ubi.pt/~pmoura>     <http://www.logtalk.org>
-----------------------------------------------------------






reply via email to

[Prev in Thread] Current Thread [Next in Thread]