Garfield Compilation

I am new to Garfield.
I am compiling an example in Garfield using make file as
gastable: gastable.C
g++ -c -O3 root-config --cflags -I$(GARFIELD_HOME)/Include gastable.C
g++ root-config --glibs -lgfortran -lm -o gastable gastable.o $(GARFIELD_HOME)/Library/libGarfield.a
rm gastable.o
On compilation i get the error as
/home/muzamil/garfield/Library/libGarfield.a(magboltz.o):magboltz-9.01.f:(.text+0xe94bb): more undefined references to _gfortran_transfer_real' follow /home/muzamil/garfield/Library/libGarfield.a(magboltz.o): In functionreadin_’:
magboltz-9.01.f:(.text+0xe94e5): undefined reference to _gfortran_st_read_done' magboltz-9.01.f:(.text+0xe9524): undefined reference to_gfortran_st_read’
magboltz-9.01.f:(.text+0xe9536): undefined reference to _gfortran_transfer_real' magboltz-9.01.f:(.text+0xe954e): undefined reference to_gfortran_transfer_real’
magboltz-9.01.f:(.text+0xe955f): undefined reference to _gfortran_transfer_real' magboltz-9.01.f:(.text+0xe9567): undefined reference to_gfortran_st_read_done’
/home/muzamil/garfield/Library/libGarfield.a(magboltz.o): In function magboltz2_': magboltz-9.01.f:(.text+0xe986e): undefined reference to_gfortran_stop_string’
collect2: error: ld returned 1 exit status
make: *** [gastable] Error 1

Please tell me how to solve it.
Your reply will be appreciated

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.