环境vs2015+ivf2017 
用fortran做了个水物性库,想在c++环境下调用。 
vs2015下,x86使用时C++调用名:_waterprop_pt 
                x64使用时C++调用名:waterprop_pt 
 
问题:不改变C++头文件的情况下,用什么样的编译命令能够条件编译x86和x64的静态库? 
 
下面是原有的代码,仅能实现x64调用,x86调用失败。 
[Fortran] syntaxhighlighter_viewsource syntaxhighlighter_copycode 
    FUNCTION waterprop_pt(pin, tin, ifn) RESULT(value)
    ! static lib statement
    !DEC$ IF DEFINED(_X86_)
    !DEC$ Attributes C, Dllexport, Alias : '_waterprop_pt'::waterprop_pt
    !DEC$ ELSE
    !DEC$ Attributes C, Dllexport, Alias : 'waterprop_pt'::waterprop_pt
    !DEC$ ENDIF
    END  FUNCTION waterprop_pt 
 
 
 |