Home > Archive > Fortran > February 2008 > Did anyone manage to get MATRAN compiled with g95?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Did anyone manage to get MATRAN compiled with g95?
|
|
|
| Hello
On browsing www.g95.org, I have noticed that MATRAN is said to work
with g95. So I download the tar file and under msys, I issued the
command make (Of course I changed f95 to g95). The result was a
series of error messages.
Does anyone have the exact configuration to get MATRAN compiled under
g95?
Many thanks
Ed
| |
| paul.richard.thomas@gmail.com 2008-01-31, 7:27 pm |
|
> Does anyone have the exact configuration to get MATRAN compiled under
> g95?
For gfortran it is -
FC = gfortran
PREC = dbl
LIB = lapack.a blas.a
..f95.o :
$(FC) -c -x f95-cpp-input -D$(PREC) $<
where the -x f95-cpp-input triggers macro processing. The
corresponding option for G95 is -cpp.
Paul
| |
|
| On Jan 31, 9:26=A0am, paul.richard.tho...@gmail.com wrote:
>
> For gfortran it is -
>
> FC =3D gfortran
> PREC =3D dbl
> LIB =3D lapack.a blas.a
>
> .f95.o :
> =A0 =A0 =A0 =A0 $(FC) -c -x f95-cpp-input -D$(PREC) $<
>
> where the -x f95-cpp-input triggers macro processing. =A0The
> corresponding option for G95 is -cpp.
>
> Paul
Hello
Many thanks. At least the compiled went fine for some sources but
g95 -c -cpp -Ddbl MatranRealCore.f95
In file MatranRealCore.f95:28
end module MatranRealCore_m
1
Error: Name 'minus' at (1) is an ambiguous reference to 'minus' from
module 'rmatsum_m'
In file MatranRealCore.f95:28
end module MatranRealCore_m
1
Error: Name 'plus' at (1) is an ambiguous reference to 'plus' from
module 'rmatsum_m'
In file MatranRealCore.f95:28
end module MatranRealCore_m
1
Would you know what is to be done next?
Many thanks
Ed
| |
| Wade Ward 2008-02-08, 7:18 pm |
| On Jan 31, 7:28=A0am, Ed <emammen...@gmail.com> wrote:
> On Jan 31, 9:26=A0am, paul.richard.tho...@gmail.com wrote:
>
>
>
>
>
>
>
>
>
> Hello
>
> Many thanks. At least the compiled went fine for some sources but
>
> g95 =A0-c -cpp -Ddbl MatranRealCore.f95
> In file MatranRealCore.f95:28
>
> end module MatranRealCore_m
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A01
> Error: Name 'minus' at (1) is an ambiguous reference to 'minus' from
> module 'rmatsum_m'
> In file MatranRealCore.f95:28
>
> end module MatranRealCore_m
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A01
> Error: Name 'plus' at (1) is an ambiguous reference to 'plus' from
> module 'rmatsum_m'
> In file MatranRealCore.f95:28
>
> end module MatranRealCore_m
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A01
>
> Would you know what is to be done next?
>
> Many thanks
>
> Ed
I don't know the answer to your g95 question, unless it is to get a
different compiler.
I've been shopping around, and there are 2 things that commend
gfortran in your situation. A distro that was just announced here has
the best documentation I have ever seen from a compiler that shows up
in a bin. I've been reading it all day. Furthermore, there seems to be
a critical mass of gfortran users in c.l.f. who can and do comment on
compiler specific stuff.
--
| |
| Ken Fairfield 2008-02-09, 10:18 pm |
| Ed wrote:
> On Jan 31, 9:26 am, paul.richard.tho...@gmail.com wrote:
>
> Hello
>
> Many thanks. At least the compiled went fine for some sources but
>
> g95 -c -cpp -Ddbl MatranRealCore.f95
> In file MatranRealCore.f95:28
>
> end module MatranRealCore_m
> 1
> Error: Name 'minus' at (1) is an ambiguous reference to 'minus' from
> module 'rmatsum_m'
> In file MatranRealCore.f95:28
>
> end module MatranRealCore_m
> 1
> Error: Name 'plus' at (1) is an ambiguous reference to 'plus' from
> module 'rmatsum_m'
> In file MatranRealCore.f95:28
>
> end module MatranRealCore_m
> 1
>
>
> Would you know what is to be done next?
I'm very suspicious of the "-Ddbl" switch on the command line.
I don't have g95 to play with, but I'd *guess* that switch is
used to "promote" single precision to double precision reals in
the source. That is *highly* likely to interfere with any
generic interfaces within Module MatranRealCore_m (absent seeing
the actual code). The messages about ambiguous "plus" and "minus"
indicate these may very well be generic interfaces.
What happens if you compile without -Ddbl?
-Ken
--
Ken & Ann Fairfield
What: Ken dot And dot Ann
Where: Gmail dot Com
|
|
|
|
|