users-prolog
[Top][All Lists]
Advanced

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

Re: [Logtalk] GNU prolog/Logtalk


From: Paulo Moura
Subject: Re: [Logtalk] GNU prolog/Logtalk
Date: Wed, 14 Jul 2004 18:28:09 +0100


On 14/jul/2004, at 16:52, Saurabh Bhatla wrote:

Hi all,
   I have just started working in logtalk today. I am using it with GNU
Prolog. I want to make an executable for birds example. I am using the
following command to generate the executable.

gplc *.pl ../../compiler/logtalk.pl ../../configs/gnu.pl


I get the following error:

address@hidden birds]$ gplc *.pl ../../compiler/logtalk.pl
../../configs/gnu.pl
/tmp/gplcUg8BDb.o(.text+0x1bb): In function `Lpred3_3':
: undefined reference to `predicate($proto_hierarchy0__dcl/5)'
/tmp/gplcUg8BDb.o(.text+0x2b9): In function `Lpred5_3':
: undefined reference to `predicate($proto_hierarchy0__def/5)'
collect2: ld returned 1 exit status
compilation failed

See the NOTES and SCRIPT file on the examples/birds directory. Specifically, the birds examples have dependencies on library entities. In order to create an executable, you will need to compile all the Prolog files generated by Logtalk, including the library ones. From the birds directory, you should be able to get an executable by doing something like:

address@hidden birds]$ gplc ../../configs/gnu.pl ../../compiler/logtalk.pl ../../library/*.pl *.pl

I belief that gplc accepts an option for choosing a startup goal, which could be handy.

Hope this helps. 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 275319891
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]