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

[ns] linking problems while compiling ns




while compiling ns (using gcc 2.95.1, on Solaris 2.6) i got the following
linking error when the ns executalble was being built:

gcc -E  -o ns \
        tclAppInit.o  random.o rng.o ranvar.o  ... (the rest of the objectfiles)
..  \ -L../tclcl-1.0b9 -ltclcl -L../otcl-1.0a5 -lotcl                    \       
-L../tkbox/lib -ltk80 -L../tclbox/lib -ltcl80 -L/usr/X11R6/lib -lXext -lX11 -lm

gcc: tclAppInit.o: linker input file unused since linking not done
gcc: random.o: linker input file unused since linking not done
gcc: rng.o: linker input file unused since linking not done
gcc: ranvar.o: linker input file unused since linking not done
gcc: misc.o: linker input file unused since linking not done
gcc: timer-handler.o: linker input file unused since linking not done
.
.
.

Following is the entry in the Makefile for the above:
$(NS): $(OBJ) tclAppInit.o Makefile
        $(LINK) $(LDFLAGS) $(LDOUT)$@ \
                tclAppInit.o $(OBJ) $(LIB)

I also tried with the -O2 gcc flag set, but same result.