jowr / librefprop.so

Create a shared library from the Fortran sources provided by Refprop from NIST. This project provides an alternative to the refprop.dll that comes with the software. Please use the official instructions if possible

Home Page:https://github.com/usnistgov/REFPROP-cmake

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Intel-style exports for REFPROP

ibell opened this issue · comments

Hey @jowr, is it possible to export the symbols in the dynamic library in the same way that is used in the windows REFPROP DLL? That would allow us to use the REFPROP dylib on OSX more or less natively with the refpropm MATLAB file available from the REFPROP FAQ.

Hi, according to http://gcc.gnu.org/onlinedocs/gfortran/Code-Gen-Options.html, you can get your desired behaviour by using -fno-underscoring as compile flag. However, they do not recommend it for production use...

Hmm it seems the default is to be lower case as well. Is there a
combination of flags that will not change the case and not add the
underscores? It seems the docs are not terribly comprehensive on this
topic.

On Thu, Jan 30, 2014 at 7:26 PM, Jorrit Wronski notifications@github.comwrote:

Hi, according to
http://gcc.gnu.org/onlinedocs/gfortran/Code-Gen-Options.html, you can get
your desired behaviour by using -fno-underscoring as compile flag.
However, they do not recommend it for production use...

Reply to this email directly or view it on GitHubhttps://github.com//issues/7#issuecomment-33717068
.

@ibell, I added the shell script that I use to change the matlab files in 3a369e5. I also updated the readme.md, please have and look there. I think we should NOT act against the explicit advice of the gfortran crew and compile the library with some funky flags... I hope this solution works for you.

@jowr, Yes I think the gfortran guys are overly pedantic in this case. I
think if we can find a set of flags that give us the behavior that we want,
we should be in business. Your fix for the matlab files looks like a good
mid-term solution.

On Thu, Jan 30, 2014 at 10:44 PM, Jorrit Wronski
notifications@github.comwrote:

@ibell https://github.com/ibell, I added the shell script that I use to
change the matlab files in 3a369e53a369e5.
I also updated the readme.md, please have and look there. I think we
should act against the explicit advice of the gfortran crew and compile the
library with some funky flags... I hope this solution works for you.

Reply to this email directly or view it on GitHubhttps://github.com//issues/7#issuecomment-33737227
.