Compiling a .dll from this source
JSav87 opened this issue · 1 comments
JSav87 commented
Hi there, thanks for the great tool. I want to call the library within windows, so I need to compile the library into a dll.
I created a build pipeline with CMake, and am now trying to compile with Codeblocks using gfortran. I get the following error:
I:\Software\fishpack-master\src\centered_helmholtz_solvers.f90:37:8:
module subroutine hwscrt(a, b, m, mbdcnd, bda, bdb, c, d, n, nbdcnd, bdc, &
1
Error: Unclassifiable statement at (1)
Do you perhaps have any suggestion for how to fix this problem? Or have you ever tried compiling for a windows machine? Thanks for any help.
jlokimlin commented
The library was developed in the Unix environment and never tested on the
Windows platform. *Does your compiler support free-form Fortran 2008+?*
Fishpack uses *.f90 to denote any free-form source code. I do not use *.f95,
*.f03 file extensions (not to mention *.f15). Not only are these extension
not recognized by all compilers, but Fortran 95 or Fortran 2003 code can be
written as fixed-form source (it’s still part of the standard). The common
conventions are: *.f, .for for fixed-form source code *.f90 for free-form
source code, and *.F, *.F90 on Unix-like systems for fixed-form or
free-form source code that must be preprocessed in a C-like style.
…On Fri, Jan 25, 2019 at 9:56 AM JSav87 ***@***.***> wrote:
Hi there, thanks for the great tool. I want to call the library within
windows, so I need to compile the library into a dll.
I created a build pipeline with CMake, and am now trying to compile with
Codeblocks using gfortran. I get the following error:
Error: Unclassifiable statement at (1)
I:\Software\fishpack-master\src\centered_helmholtz_solvers.f90:41:20:
integer(ip), intent(in) :: m
1
After much searching I am quite sure this has something to do with the use
of the C_ISO_BINDING within the module interface. Do you perhaps have any
suggestion for how to fix this problem?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#7>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKsoxmv8_gW4JUdDyGO695tTLRw0DcECks5vG0U0gaJpZM4aTX9E>
.