swarm-support
[Top][All Lists]
Advanced

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

Re: help -- link failure with GraphLib app


From: Alex Lancaster
Subject: Re: help -- link failure with GraphLib app
Date: 19 Jan 1998 16:30:54 -0700

>>>>> "Geoffrey" == Geoffrey Schultz <address@hidden> writes:

Geoffrey> Hi, Can someone help me with a (probably) simple problem I'm
Geoffrey> having linking object files while compiling the application
Geoffrey> in bank-0.3? (a GraphLib demo application)

Geoffrey> I've made the GraphLib with no problems and otherwise have
Geoffrey> no problems compiling and linking other swarm applications.

Geoffrey> the error that I get says:

Geoffrey> "/usr/local/swarm/lib/libgraph.a(DiGraphLink.o)(.rotdata+0xc):
Geoffrey> undefinded reference to '__objc_class_name_LinkItem' "

You may not have set your $SWARMHOME variable to point to the right 
place where Swarm is installed. You can do this one of two ways.
In your bash shell you can set up an environment variable like:

export SWARMHOME=../<location of your "swarm" home directory>

Makefiles in Swarm will override any hard-coded SWARMHOME variable
with the one inherited from bash. I highly recommend this approach, 
put this in your .bashrc file, or equivalent.

Or you can code it directly in the Makefile, but you need to check
that all your Makefiles for the apps and libraries you are compiling
are all pointing to the *same* location for the SWARMHOME.

In your case, I suspect that your Makefile for GraphLib-0.3 is not
pointing to same place as your other apps, so subsequently at link
time (which your error is coming from) it can't find the installation
of the library. Check in swarm/include to make sure that the header
file(s) <graph.h> etc. have been installed in the correct place.

Geoffrey> similarly, I get two other "undefined references" to
Geoffrey> OvalNodeItem and RectangleNodeItem.

Geoffrey> I'm using swarm version 1.0.5. (archive), on a Linux pentium
Geoffrey> machine (Slakware 3.2).~

Geoffrey> Other required apps appear to be installed correctly as I've
Geoffrey> no problems otherwise. (tcl 7.5, tk 4.1, gcc 2.7.2.1,
Geoffrey> blt2.3, tclobjc1.2b)

Geoffrey> added info: dynamicGraph-0.3 does compile and link.  After
Geoffrey> installing BoolLib, booldemo does not link and gives similar
Geoffrey> errors, such as undefined reference to "DiGraph" and
Geoffrey> "DiGraphNode".

I suspect a similiar problem for these errors.

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]