Changes between Version 2 and Version 3 of FortranApps


Ignore:
Timestamp:
Apr 30, 2007, 8:55:33 AM (17 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FortranApps

    v2 v3  
    1212
    1313== Windows: Visual Studio ==
    14 
    15 '''''2004-06-16 note: this page is outdated; will update (functions are now declared `extern "C"` so no C++ mangling is done; there is a boinc_api_fortran.C wrapper) -- quarl@ssl'''''
    1614
    1715Note: a working example similar to the following (based on outdated BOINC code) is [http://boinc.berkeley.edu/TestLibs.zip here]; see also its [http://boinc.berkeley.edu/taufer.txt README].
     
    3634}}}
    3735
    38 Because BOINC is compiled as C++ files the FORTRAN compiler will not be able to find the standard function name in the object file, you therefore have to add an alias for the function giving the real function name:
    39 
    40 {{{
    41  !DEC$ ATTRIBUTES ALIAS : '?boinc_finish@@YAHH@Z' :: boinc__finish
    42 }}}
    43 
    44 This function name can be found in the object file. Go to your compile directory and run dumpbin.
    45 
    46 {{{
    47 c:\fortranproject\Release>dumpbin /symbols boinc_api.obj
    48 }}}
    49 this will give you a list of symbols, where you can find the real functionname.  The interface will end up looking like this:
     36The interface will end up looking like this:
    5037
    5138{{{