- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve,
Here's the output of dumpbin on my exports library and on the dll itself:
Y:Mergeexportsdebugi386in>dumpbin /EXPORTS libhpmpi.lib | grep mpi_init
_mpi_init@4
_mpi_init_thread@12
_mpi_initialized@8
Y:Mergeexportsdebugi386in>dumpbin /EXPORTS libhpmpi.dll | grep mpi_init
407 162 0011D0FA _mpi_init@4 = @ILT+245(_mpi_init@4)
408 163 0011E11C _mpi_init_thread@12 = @ILT+4375(_mpi_init_thread@12)
409 164 0011E5BD _mpi_initialized@8 = @ILT+5560(_mpi_initialized@8)
Y:Mergeexportsdebugi386in>
The fortran code makes the call which can be seen as an external in the .obj file:
020 00000000 SECT2 notype () External | _MAIN__
tag index 00000022 size 000004E4 lines 0002A52A next function 0000007A
022 00000000 SECT2 notype BeginFunction | .bf
line# 0035 end 0000007C
024 0000003B SECT2 notype .bf or.ef | .lf
025 000004E4 SECT2 notype EndFunction | .ef
line# 00a8
027 00000000 UNDEF notype () External | _for_set_reentrancy
028 00000000 UNDEF notype () External | _mpi_init
029 00000000 UNDEF notype () External | _timer_clear
02A 00000036 DEBUG notype Filename | .file
S:warrenFortranNasParallelNPB2.3b2NPB2.3b2FTft.f
As you can tell from the above, I've set the external interface to be lowercase rather than the default UPPERCASE, so as to match what we tend to expect from Fortran (at least on Unix platforms). What am I missing here?
As a last point, we declare the interface to be __stdcall, e.g.
declspec(export) void __stdcall mpi_init (void *ierr) {...}
Should this be something else for fortran?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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