Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28383 Discussions

Fortran DLL Project Release Build Fails

Martin__Jonathan
Beginner
368 Views

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
1 Solution
mecej4
Honored Contributor III
368 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
mecej4
Honored Contributor III
369 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.

0 Kudos
Martin__Jonathan
Beginner
367 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
Reply