swarm-support
[Top][All Lists]
Advanced

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

Re: GraphDemo


From: Pietro Terna
Subject: Re: GraphDemo
Date: Sun, 13 Apr 1997 23:58:44 +0200

Hi Manor, 

the 'cut and paste strategy' runs (as I confirm in my thanks message to Kevin).

'bank' is very interesting and I hope I can suggest some economic improvement.

Yours, Pietro

May be Glen can explain the fact that APPLIBS doesn't work ... Many thanks
also to him.

At 11.12 13/04/97 -0700, you wrote:
>
>Hi Pietro!
>
>Two possibilities:
>
>1) Did you download the GraphLib directory into the src area of Swarm?
>   There should be a libgraph.a (I think) in your .../swarm/lib area after
>   you do a make of the GraphLib stuff.
>
>2) Also, in the Makefile (of GraphDemo) there is a line which looks
>   like this:
>
>   APPLIBS=-lgraph
>
>   And it is supposed to show up when you link the application:
>
>  gcc -g -L../../swarm/lib -L/usr/X11R6/lib  -o bank FEntity.o FLink.o ILink.o
>  BLink.o FNet.o main.o BankModelSwarm.o BankObserverSwarm.o BankBatchSwarm.o
>    ../../swarm/lib/swarm.x -lobjc -lX11 -lm
>  ^
> /|\
>  |
>
> missing reference: "-lgraph"
>
>Now, it seems that you are using a binary distribution of Swarm (hence the
>swarm.x) and I have no experience compiling against the shrinkwrapped dist.
>It may be that there is actually a bug with that, and that the APPLIB var
>is being ignored (either that, or it is commented out of your makefile).
>
>In any case try cut & pasting the final compilation line and inserting
>-lgraph before the rest of the stuff, and see if that works...
>
>Manor.
>
>PS. Actually, I was just checking the Makefil.appl, and I notice this:
>
>  ifeq ($(LDCONFIG),bin)
>  APPLIBS=
>  endif
>
>Which could mean that if LDCONFIG is bin (i.e. this is a shrink-wrapped
>distribution), then the system disallows application specific libraries,
>(which would explain the lack of a -lgraph in you compilation). This is
>a bit odd but I'm sure there's a reason for it... I think this is a
>question for Glen :-)
>
>                  ==================================
>   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.
>                  ==================================
>


                  ==================================
   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]