- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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
- Marcas:
- Intel® Fortran Compiler
Link copiado
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
DLLEXPORT is not for Linux. Just take that out - nothing else needs to change.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Thanks! I have commented the line out and compiled the code, but doesn't work properly in Linux,
same code worked in Mac...
Liz
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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...
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
I can't help with the Ruby On Rails error. Let's see if we can get the Fortran-C version working first.
- Subscrever fonte RSS
- Marcar tópico como novo
- Marcar tópico como lido
- Flutuar este Tópico para o utilizador atual
- Marcador
- Subscrever
- Página amigável para impressora