***  For details on how to be removed from this list visit the  ***
***          CCP4 home page http://www.ccp4.ac.uk         ***




> ...Isn't it obvious?  Here's the corrected line, after I tweaked the
> configure.in file, called autoconf and reconfigured:

It's interesting how obvious gets redefined when it comes to computers...

<snip>

> strategy_cntl.o strategy_examine.o sym_chk.o symm_errchk.o unique_gen.o
> vangl.o write_matrix_ctl.o  -ljwc_f -ljwc_c -lxdl_view -lxdl_viewextra
> -lccp4f -lccp4c -lmmdb -lm  -L/usr/X11R6/lib -lXt -lX11  -lSM -lICE
> -L/usr/lib/gcc/i386-redhat-linux/4.0.2
> -L/usr/lib/gcc/i386-redhat-linux/4.0.2/../../.. -lstdc++ -lm -lgcc_s
>
> See the difference?  ;)
>
> Problem is, since libjwc_f calls libccp4f, it needs to be linked
> first.  I'm actually a bit surprised this works for *anyone* if the
> linker doesn't know where to find the libccp4f calls.

Since you mentioned linker order, I'd though that -lccp4c had to be before
-lccp4f.  Any ideas if I was mistaken, or if this is new?

As a side note, depending on compiler, linker order may or may not matter
(the example that sticks in my mind is compaq c++ vs g++, with the compaq
compiler being much more picky about it).  Apparently gfortran's on the
picky side as well.

Pete


Pete Meyer
Fu Lab
BMCB grad student
Cornell University

Reply via email to