Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
24 Views

Fortran DLL Project Release Build Fails

Jump to solution

I'm using Intel Parallel Studio XE 2016 with Visual Studio 2015 to build a Fortran DLL project. It successfully builds in Debug mode but attempting to build the Release mode results in several errors that reference some of the linked static libraries. The majority of errors reference calls to 'WRITE_LOG':

error LNK2001: unresolved external symbol _WRITE_LOG@8

Also note that the static libraries in question all build to completion in both Debug and Release modes. Any ideas on how to resolve the Release build errors?

0 Kudos

Accepted Solutions
Highlighted
Black Belt
24 Views

Do you use third party libraries among the input files to the DLL link step? From the name decoration, this would be a library (or object file) that was compiled using the CVF/MSFortran STDCALL convention. It is also possible that WRITE_LOG is provided by a different Fortran compiler that had been used when the source code was developed.

View solution in original post

0 Kudos
2 Replies
Highlighted
Black Belt
25 Views

Do you use third party libraries among the input files to the DLL link step? From the name decoration, this would be a library (or object file) that was compiled using the CVF/MSFortran STDCALL convention. It is also possible that WRITE_LOG is provided by a different Fortran compiler that had been used when the source code was developed.

View solution in original post

0 Kudos
Highlighted
24 Views

You were right, the library being linked to was compiled using the CVF/MSFortran STDCALL convention. I was able to reconfigure and build in Release mode.

0 Kudos