[AQT-dev] How to compile Fortran examples?
Brought to you by:
persquare
From: Mojca M. <moj...@gm...> - 2012-05-25 14:24:37
|
Can anyone help me get the Fortran demos to compile? I'm unable to figure out how to call the linker. export fc=gfortran-mp-4.4; export FFLAGS=-fno-range-chec I can do the following for example: gcc -c f2aquaterm.c gfortran-mp-4.4 -o demo demo.f f2aquaterm.o -framework AquaTerm -fno-range-check but it fails with Undefined symbols for architecture x86_64: "_aqtinit_", referenced from: _MAIN__ in ccJOEnv6.o "_aqtopenplot_", referenced from: _MAIN__ in ccJOEnv6.o "_aqtsetplotsize_", referenced from: _MAIN__ in ccJOEnv6.o "_aqtsetplottitle_", referenced from: _MAIN__ in ccJOEnv6.o "_aqtsetcolormapentry_", referenced from: _MAIN__ in ccJOEnv6.o "_aqtsetcolor_", referenced from: _MAIN__ in ccJOEnv6.o no matter what I try. I'm not a Fortran programmer and have no idea how to recover from these linker errors. Thank you, Mojca |