ACML-GPU example programs

Discussion created by w.miah@rl.ac.uk on Mar 9, 2010
Latest reply on May 30, 2010 by BertKarwatzki
not finding gfortran libraries

I am trying to build the example programs provided with the ACML-GPU (version acmlg1.1alph) but they keep complaining about not finding the gfortran libraries:

gcc -g  dgemm_c_example.c -I../include ../lib/libacml.a -L ../lib -lCALBLAS -L /usr/lib64 -laticalcl -laticalrt -lgfortran  -o dgemm_c_example.exe
../lib/libacml.a(dgemmwrapL.o): In function `dgemmwrapl_':
dgemmwrapL.F.text+0x566): undefined reference to `_gfortran_runtime_error_at'
../lib/libacml.a(dgemmwrapS.o): In function `dgemmwraps_':
dgemmwrapS.F.text+0x6b0): undefined reference to `_gfortran_runtime_error_at'
collect2: ld returned 1 exit status
make: *** [dgemm_c_example.exe] Error 1

I have a RHEL 5.4, gcc/gfortran version 4.1.2 as specified in the ACML-GPU documentation as a requirement. Any help will be greatly appreciated. Many thanks.