can not complie main program

when I compile as 10.7.1. Build a DLL: Fortran example, No main program appears, But there was no error, Nothing happened

Hi yaoshunyu,

By 10.7.1, I’m assuming you mean the example code at: https://www.pgroup.com/resources/docs/19.9/x86/pgi-user-guide/index.htm#lib-dynlnk-bld-dll-fort

Yes, unfortunately, there’s a compiler problem with the “!DEC$ ATTRIBUTES DLLIMPORT” directive which is causing this example to fail silently. It’s a known problem that’s being tracked by TPR #26715 but I don’t have an estimate when it will be fixed.

Sorry,
Mat

thx for your answer