[scilab-Users] Link() / Fortran function name NOT appended with underscore

Allan CORNET allan.cornet at scilab.org
Wed Feb 9 16:59:38 CET 2011


Hi,

 

Fortran compilers on Windows (intel fortran and gfortran) have a compilation
option to define to add or not a ‘_’

 

See « Append Underscore to External Names » option in your compiler
(/assume:underscore).

 

If your symbol has no underscore you can try :

link("myfortran.dll", "myfortranfunction", "c")

 

see help link

 

And please check that you link dependencies before that you link your
dynamic library.

 

Allan

 

 

 

De : esteban jimenez [mailto:esteban at tiwee.net] 
Envoyé : mercredi 9 février 2011 16:47
À : users at lists.scilab.org
Objet : [scilab-Users] Link() / Fortran function name NOT appended with
underscore

 

Hello,

I have problem using the link() function.

Many Fortran compilers append an underscore (_) at the end of definitions
and references to externally visible symbols (subroutines, functions, etc.)
BUT NOT ALL !

I work with in house fortran dll for wich I can't guarantee neither the
compilers nor options and for some of them the subroutine names are not
appended.

Link() seems to always consider that function name ends with a '_'. Can I
change this behavior ?

Thank's

S.Jimenez

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20110209/48be3c65/attachment.htm>


More information about the users mailing list