swarm-support
[Top][All Lists]
Advanced

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

Re: GraphLib and APPLIBS


From: Alex Lancaster
Subject: Re: GraphLib and APPLIBS
Date: 26 Jan 1998 19:03:57 -0700

>>>>> "RK" == Rob Kewley <address@hidden> writes:

RK> Pietro Terna wrote:
>>  Here, despite the fact that the dynamicGraph-0.3 Makefile
>> contains:
>> 
>> APPLICATION=dynamicGraph OBJECTS=main.o ModelSwarm.o
>> ObserverSwarm.o APPLIBS=-lgraph
>> 
>> the linker does not receive -lgraph, but only: gcc -g
>> -L/home/terna/swarm/swarm/lib -L/usr/X11R6/lib -o dynamicGraph
>> main.o ModelSwarm.o ObserverSwarm.o
>> /home/terna/swarm/swarm/lib/swarm.x -lobjc -lX11 -lm -ldl
>> 

RK> Check the Makefile.conf file of your swarm distribution to ensure
RK> that it includes $(APPLIBS) in the LIBS variable.  Line 490 of my
RK> distribution contains this line as follows.

RK> LIBS= $(DISTOBJ) -lobjc -lX11 -lm $(OTHERLIBS) $(SYSDEPLIBS)
RK> $(APPLIBS)

RK> While using a previous distribution, (I think it was the linux
RK> binary version 1.0.3) I had to add $(APPLIBS) myself.

Yes - you're right - the current Makefile.conf, does not include
APPLIBS in the $(LIBS) variable that it passes to the linker for
applications built against a binary distribution (this differed from
the source only distribution). This would appear to be a bug. The
appropriate lines in Makefile.conf are now:

ifeq ($(LDCONFIG),bin)
LIBS= $(APPLIBS) $(DISTOBJ) -lobjc -lX11 -lm $(OTHERLIBS) $(SYSDEPLIBS)
else
SWARMLIBS= -lanalysis -lsimtools -ltkobjc -lactivity -lrandom -lobjectbase 
-lcollections -ldefobj
LIBS= $(APPLIBS) $(SWARMLIBS) $(SYSLIBS) -lobjc -lX11 -lm $(OTHERLIBS) 
$(SYSDEPLIBS)
endif

Duly noted and fixed for the next release - thanks!

  --- Alex

-- 
  Alex Lancaster         |   e-mail: address@hidden
  Swarm Developer        |      web: http://www.santafe.edu/~alex
  Santa Fe Institute     |      tel: +1-(505) 984-8800 (ext 242)
------------------------------------------------------------------

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

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