On Jun 3, 2010, at 4:37 PM, Colin Aspin wrote:
> Anybody know how to compile a fortran program against Starlink libraries under hawaiki? I used to do this all the time and their used to be a distributed g95 command (I thought) but now it has gone and nothing seems to work.
We could not use g95 when building 64-bit binaries.
>
> g77 sedn.f -o sedn caalen.o -L. -lchr -L/star/lib -lpgplot -lgwm -L/usr/X11R6/lib -lX11 -lemsf -lems -lcnf
> ld warning: in /star/lib/libchr.dylib, file is not of required architecture
g77 does not work in 64-bit mode.
> ld warning: in /star/lib/libpgplot.dylib, file is not of required architecture
> ld warning: in /star/lib/libgwm.dylib, file is not of required architecture
> ld warning: in /star/lib/libemsf.dylib, file is not of required architecture
> ld warning: in /star/lib/libems.dylib, file is not of required architecture
> ld warning: in /star/lib/libcnf.dylib, file is not of required architecture
> Undefined symbols:
> "_pgsls_", referenced from:
> _MAIN__ in ccapek0b.o
> _MAIN__ in ccapek0b.o
> _MAIN__ in ccapek0b.o
> _MAIN__ in ccapek0b.o
> _MAIN__ in ccapek0b.o
> _MAIN__ in ccapek0b.o
> _MAIN__ in ccapek0b.o
> _MAIN__ in ccapek0b.o
> _MAIN__ in ccapek0b.o
> _MAIN__ in ccapek0b.o
>
> I tried f95 also and got similar but different results.
hawaiki was built with gfortran and you must use -m64.
--
Tim Jenness
|