g95 compiler error

Bowyer, Clifton C clifton.c.bowyer@boeing.com
Mon Jul 11 22:15:00 GMT 2005


Fellow g95 Users,

I compiled a .mod file using the following command .......

g95 -ffree-form apm_mod.f90

This seemed to work fine and it created a apm_mod.mod file.

I then tried compiling another file that uses the common blocks and
subroutines defined in apm_mod.f90 and came back with numerous errors
(see example below) saying that it could not find variables defined in
apm_mod.f90.  

/tmp/ccXI7zAW.o(.text+0x223): In function `apminit_':
: undefined reference to `apm_mod_MP_wind'

Note, I used the following compile command .....

g95 -ffree-form -r8 apmsubs.f90.

Note:  This is on a Linux Redhat 9.0 machine using gcc 4.0.0.

Any help would be greatly appreciated.


Thanks,

Clifton Bowyer



More information about the Fortran mailing list