Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

DLLEXPORT and CALL

$
0
0

Hello expert,

A silly question, my fortran project is a Windows DLL. It exports a function called 'polyfit'. Calling the function from excel works fine. However, when I want to call this function from my own DLL .. I'm not even able to compile. Error is 'unresolved external symbol'.

I guess I'm not allowed to call from my own DLL a function which is exported. Then how should I do it ?

The export code is the following :

!MS$IF DEFINED (_DLL)
!MS$ATTRIBUTES DLL EXPORT :: polyfit
!MS$ATTRIBUTES STDCALL,ALIAS:'polyfit' :: polyfit
      .... arguments ....
!MS$ENDIF

The calling code from inside fortran is simply :

CALL POLYFIT( ....)

Thanks,

Vincent


Viewing all articles
Browse latest Browse all 3270

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>