Comments (6)
TODO:
- Write the C interface
- Change all function names in the other files
- Remove additional header files
- Test the code and makefile
from librefprop.so.
I have an even better solution.
In the PASS_FTN.for file, add BIND(C, NAME="SETUPdll") to the end of each subroutine. For instance, setup function would become
c ======================================================================
subroutine SETUPdll (i,hfld,hfm,hrf,ierr,herr) BIND(C, NAME="SETUPdll")
include 'commons.for'
cDEC$ ATTRIBUTES DLLEXPORT, Decorate, Alias: "SETUPdll"::SETUPdll
cDEC$ ATTRIBUTES STDCALL, REFERENCE::SETUPdll
c dll_export SETUPdll
integer*4 i
character*10000 hfld
character*255 hfm, herr
character*3 hrf
call SETUP0 (i,hfld,hfm,hrf,ierr,herr)
end
which would then get exported by gfortran as SETUPdll when compiled with fortran 2003. I'm in contact with Eric Lemmon and I think we can get this change made upstream.
It's pretty easy to search the PASS_FTN.for file to find the subroutine lines, parse them, and then add the BIND(C, ...) output.
from librefprop.so.
I'll give it a try. Thanks for the suggestion. I guess everyone except my group works with fairly new Fortran versions...
This potentially solves so many pitfalls regarding header files and function names for cross-platform development.
from librefprop.so.
Turns out its not quite so straightforward. You have to worry about C
style and FORTRAN style strings. But I think that I am mostly done.
On Wed, Oct 1, 2014 at 7:32 AM, Jorrit Wronski [email protected]
wrote:
I'll give it a try. Thanks for the suggestion. I guess everyone except my
group works with fairly new Fortran versions...This potentially solves so many pitfalls regarding header files and
function names for cross-platform development.—
Reply to this email directly or view it on GitHub
#17 (comment).
from librefprop.so.
Thanks. You are mostly done? Means I should hold my horses? Looking
forward to have a solution presented by you ;-)
from librefprop.so.
I would say that this has been solved by the new header files.
from librefprop.so.
Related Issues (20)
- Name mangling HOT 5
- [No rule to make target 'fortran/COMMONS.f',needed by 'src/PASS_FTN_ALT.f'. Stop] HOT 7
- Errors Compiling on OS X Yosemite HOT 7
- bug report of -fPIC option of gcc in v0.2 for refprop 9.0 HOT 1
- [Fortran libraries on mac OS X 10.8.5 and linked with Matlab 64 bits] HOT 5
- [Equation of state limits] HOT 6
- Add automatic prototype generation for MATLAB HOT 2
- Version issue HOT 6
- 9.11 additional functions clash HOT 5
- Next steps for REFPROP & CoolProp HOT 2
- Matlab Integration HOT 16
- Anaconda HOT 15
- El Cap librefprop issues HOT 13
- Latest version v0.6 has wrong URL_NIST in MakeFile HOT 1
- Could one utilize the frame with fortran source code of Refprop 9.0? HOT 1
- Matlab 64bit installation on Linux (Ubuntu) HOT 4
- Consider deprecating this repo HOT 6
- Compile Erorr HOT 3
- -m32 causes crash on arm processors HOT 3
- ref prop 2310 compile error HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from librefprop.so.