- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I have many codes in Fortran and I wrapped it by C to create .dylib in Mac and I can call it from Ruby On Rails.
Recently we have lots of trouble with Mac Server and we want to transfer everything to Linux, but the Fortran code
will not compile in Linux, the error message is !!DEC$ ATTRIBUTES DLLEXPORT, C :: addsize is not supported
in this platform. Is there a way to get around this without having to rewrite Fortran codes using ISO_C_BINDING?
Thanks!
Liz
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
DLLEXPORT is not for Linux. Just take that out - nothing else needs to change.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks! I have commented the line out and compiled the code, but doesn't work properly in Linux,
same code worked in Mac...
Liz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
See your other thread - if it's the same code it should not have worked on Mac either. You don't say how it "doesn't work", though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The error message I got from Ruby On Rails is error with external library, the other thread I tried to create a much simple code and use iso_c_binding to see if the error could be with Ruby On Rails...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can't help with the Ruby On Rails error. Let's see if we can get the Fortran-C version working first.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page