[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GraphDemo
From: |
manor |
Subject: |
Re: GraphDemo |
Date: |
Sun, 13 Apr 1997 11:12:31 -0700 |
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.
==================================