Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
26750 Discussions

Fortran DLL Project Release Build Fails

Martin__Jonathan
Beginner
111 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
Black Belt
111 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

2 Replies
mecej4
Black Belt
112 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

Martin__Jonathan
Beginner
111 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.

Reply