[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fortran libraries in odepkg (Octave 4.1.0+)
From: |
Sebastian |
Subject: |
Fortran libraries in odepkg (Octave 4.1.0+) |
Date: |
Wed, 31 Aug 2016 22:08:24 +0200 |
Dear Mike & Ben, dear all,
> Il 19 ago 2016 10:42 AM, "Jacopo Corno" <[hidden email]> ha scritto:
> I get the same error as Sebastian and Marco
> mkoctfile: no way to compile Fortran file cash/mebdfdae.f
> with Octave 4.1.0+ (hg_id = 029c5f4eac3a+) and g++ (version 5.3)
as you know, I compile Octave 4.1+ with clang on my Mac. When I try to install
odepkg, then I see errors as
#error "unknown C++ to Fortran calling convention"
Carlo and Jacopo get the same error with gcc on linux but can fix this by
"./configure F77=gfortran", (which seems to be a bug in itself). I can avoid
that error if I add
"define F77_USES_GFORTRAN_CALLING_CONVENTION 1"
to the header files of odepkg. However, some errors remain, e.g.
f77-fcn.h:363:11: error: C++ requires a type specifier for all declarations.
F77_FUNC (xstopx, XSTOPX) (F77_CONST_CHAR_ARG_DECL
f77-fcn.h:363:19: error: unknown type name 'XSTOPX'
F77_FUNC (xstopx, XSTOPX) (F77_CONST_CHAR_ARG_DECL
There might be a bug wrt Fortran and that would be bad for the 4.2 release
since it can screw up several packages.
@Ben, Mike: I think you both compile with clang, right? Could you try to
install odepkg an report whether it works?
Thanks,
Sebastian
- Fortran libraries in odepkg (Octave 4.1.0+),
Sebastian <=