bug-prolog
[Top][All Lists]
Advanced

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

Re: gplc possible bug: symbol already defined


From: Paulo Moura
Subject: Re: gplc possible bug: symbol already defined
Date: Mon, 3 Aug 2015 21:58:10 +0100

> On 03/08/2015, at 18:35, Paulo Moura <address@hidden> wrote:
> 
> Hi,
> 
> I'm running GNU Prolog 1.4.5 (git version) and trying to use the gplc command 
> to generate a executable. I'm getting the following error:
> 
> /var/folders/w9/0h2yhwgh8xj42v0059bpn5h00000gn/T/gplcKSrG9k.s:7298:FATAL:Symbol
>  _X1_24246578655F757365722F305F2461757831__a1 already defined.
> 
> If I stop (using the -S switch) after producing the assembly files and open 
> the file listed in the error, I can confirm that indeed the symbol is defined 
> twice. Is this a gplc bug or something in my code? How to diagnose? I looked 
> into the related Prolog file but its contents seem fine (it defines a single 
> multifile, dynamic predicate).

After some more experimentation, I found that the error can be avoided by 
having a single initialization/1 directive in the Prolog file (the original 
file had three initialization/1 directives, which is not usual but still 
standards compliant).

Cheers,

Paulo

-----------------------------------------------------------------
Paulo Moura
Logtalk developer

Email: <mailto:address@hidden>
Web:   <http://logtalk.org/>
-----------------------------------------------------------------







reply via email to

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