users-prolog
[Top][All Lists]
Advanced

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

Re: linking gprolog libraries using GCC


From: spratt
Subject: Re: linking gprolog libraries using GCC
Date: Wed, 21 Aug 2002 14:58:23 -0500

On Monday, August 12, 2002, at 12:12  PM, Phillip Soltan wrote:

I was wondering if anyone else has tried using the "-c" option with "gplc" (gprolog) to generate object files that they later link with other object files from "gcc" to produce an executable. I would rather use "gcc" to produce the executable, rather than "gplc", because of the IDE I'm using. The problem I'm having is that I need "libengine_pl.a" and "libbips_pl.a", based on the functions I'm using, and they both have a duplicate function (Allocate) in them which causes an error at link time. I'm sure I'm missing something fairly basic, since "gplc" doesn't have any problem generating an executable, but I don't know what it is.

I just encountered what might be a related problem--I am linking gprolog in with additional libraries beyond those that 'gplc' uses and one of them ( the Mac OS X Foundation Framework, I think) already has a function named Allocate. I renamed gprolog's Allocate to AllocateGP (and rebuilt) and it all worked. So far.

-lindsey





reply via email to

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