iso_c_binding question

Steve Kargl sgk@troutmask.apl.washington.edu
Fri Oct 3 01:52:00 GMT 2008


On Thu, Oct 02, 2008 at 04:42:57PM -0600, Wilbert Weijer wrote:
> 
> I'm sorry to bother you, but I just had my system administrator install
> gcc 4.3.2, so that I can combine my fortran application with the
> Trilinos c++ libraries.
> 
> However, including 
> 
>    use ,intrinsic :: iso_c_binding ,only : ....
> 
> in my code returns the error message:
> 
> gmake[1]: *** No rule to make target
> `/home/wilbert/pop/compile/intrinsic.o', needed by
> `/home/wilbert/pop/compile/ImplicitStepMod.o'.  Stop.
> 
> while changing this to: 
> 
>   use iso_c_binding ,only :...
> 
> returns the similar: 
> 
> gmake[1]: *** No rule to make target
> `/home/wilbert/pop/compile/iso_c_binding.o', needed by
> `/home/wilbert/pop/compile/ImplicitStepMod.o'.  Stop.
> 
> 
> Doing:
> 
> > gfortran --v
> 
> in the make directory returns: 
> 
> Using built-in specs.
> Target: i686-pc-linux-gnu
> Configured with: ../gcc-4.3.2/configure --prefix=/ccs/opt/x86/gcc-4.3.2
> --with-mpfr-include=/ccs/opt/x86/mpfr-2.3.2/include --with-mpfr-
> lib=/ccs/opt/x86/mpfr-2.3.2/lib
> Thread model: posix
> gcc version 4.3.2 (GCC)
> 
> which suggests that at least I *am* using the latest version of
> gfortran. 
> 
> Does anybody have an idea why gfortran does not seem to recognize
> 'intrinsic', nor 'iso_c_binding'?

Can you do 'which gfortran' and run the gfortran with its complete
path?

It seems to me that you may have 2 different versions installed,
and your Makefile is finding the wrong version.
-- 
Steve



More information about the Fortran mailing list