gfortran, DLL, underscore

前端 未结 4 1477
我在风中等你
我在风中等你 2021-01-25 14:35

I want to access some subroutines from a third party DLL. The functions use STDCALL as the calling convention.

Running dumpbin /export foo.dll gives me some

4条回答
  •  悲&欢浪女
    2021-01-25 14:58

    Did you try -fno-underscoring ?

    I found a post by Tobias Burnus (a gfortran developer) at http://www.rhinocerus.net/forum/lang-fortran/604847-fortran-dll-call-excel-2.html (near the end) -- he recommends the use of compiler directives instead of -mrtd.

提交回复
热议问题