This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Odd linking behavior (RH 5.1)
- To: egcs-bugs at cygnus dot com
- Subject: Odd linking behavior (RH 5.1)
- From: Dave Steffen <steffend at helicon dot physics dot colostate dot edu>
- Date: Tue, 08 Sep 1998 16:09:15 -0600
Hi Folks,
I thought this was odd: I just upgraded to egcs 1.1b, and a linking
stage command that used to work now does not:
c++ -ansi -Wall -o eigen eigen.o -llapack -lblas -lf2c
/usr/lib/libf2c.so: undefined reference to `MAIN__'
Which seems to indicate it's trying to link in libf2c.so instead of
libf2c.a. Indeed, when I give the f2c library name explicitly:
c++ -ansi -Wall -o eigen eigen.o -llapack -lblas /usr/lib/libf2c.a
It also works if I use the static switch, a la:
c++ -ansi -Wall -static -o eigen eigen.o -llapack -lblas -f2c.a
everything's fine. Anybody know why it's trying to pick up the
shared library by default?
THANKS
--------------------------------------------------------------------------
Dave Steffen Wave after wave will flow with the tide
Dept. of Physics And bury the world as it does
Colorado State University Tide after tide will flow and recede
steffend@lamar.colostate.edu Leaving life to go on as it was...
- Peart / RUSH
"The reason that our people suffer in this way....
is that our ancestors failed to rule wisely". -General Choi, Hong Hi