[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: swarm problem
From: |
glen e. p. ropella |
Subject: |
Re: swarm problem |
Date: |
Fri, 22 Nov 1996 12:11:29 -0700 |
> I have installed the pre-requise softwares:
> - gcc.2.7.2
> - gdb
> - GNU make
> - libXpm
> - tcl7.4
> - tk4.0
> - blt
> - libtobjc
>
> When I try to compile one of the four sample I have these problem:
>
> </home/cuvelier/Swarm/heatbugs>trinidad<cuvelier>: make all
> gcc -L../swarm/lib -L/usr/openwin/lib -L/opt/softs/gnu/lib -g -o heatbugs
> Heatbug.o HeatSpace.o main.o HeatbugModelSwarm.o HeatbugObserverSwarm.o
> HeatbugBatchSwarm.o -lspace -lanalysis -lsimtools -ltkobjc -lactivity
> -lrandom -lswarmobject -lcollections -ldefobj -ltk -ltcl -lBLT -ltclobjc
> -lXpm -lX11 -lobjc -lm
> Undefined first referenced
> symbol in file
> Tk_DoOneEvent ../swarm/lib/libsimtools.a(ControlPanel.o)
> tk_NumMainWindows /opt/softs/gnu/lib/libtclobjc.a(Tk.o)
> Tk_CreateMainWindow /opt/softs/gnu/lib/libtclobjc.a(Tk.o)
> tcl_RcFileName /opt/softs/gnu/lib/libtclobjc.a(Tcl.o)
> Tk_DeleteFileHandler /opt/softs/gnu/lib/libtclobjc.a(Tk.o)
> Tk_CreateFileHandler /opt/softs/gnu/lib/libtclobjc.a(Tk.o)
> ld: fatal: Symbol referencing errors. No output written to heatbugs
> make: *** [heatbugs] Error 1
Bruno,
This looks similar to the problems one has when the Tcl/Tk
versions are mixed up on your machine. For instance,
Tk_DoOneEvent is defined as a macro in tk.h and should not
be referenced at all in any .a file that included it when
compiled.
I suspect that you have two tk.h files on your system, one
is for one version of Tk and one is for another. As long as
the Tcl/Tk versions have been installed cleanly, libtclobjc
should use the TCL_MAJOR_VERSION/TK_MAJOR_VERSION/TCL_MINOR_VERSION/
TK_MINOR_VERSION macros to declare tcl_RcFileName or tcl_rcFileName
in the appropriate way. But, if you installed a new version but
for some reason those macros aren't set properly, you could get
the above type of errors.
I suggest looking for two tk.h files on your system. Clues for
where to look are in the -I and -L flags on the gcc command line
or % find /usr -name tk.h -print
glen
- swarm problem, CUVELIER Bruno - 00, 1996/11/22
- Re: swarm problem,
glen e. p. ropella <=