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

Link: error: problem during multi-file optimization compilation (code 1)

john_keenan
Beginner
463 Views

I am using IVF 9.1. Withina solution I have a dll project that compiles and links without error. Within the same solution I have a console application that uses the dll. The console applicationis giving the following error when linking:

Linking...

Link: error: problem during multi-file optimization compilation (code 1)

Link: error: problem during multi-file optimization compilation (code 1)

What does this error mean? Is there a workaround?

I read through the previous postings with the same error but they all had additional error messages that indicated the root cause of the problem. There was some mention of disabling "interprocedural optimizations" but I do not see a selection for this under Properties > Configuration Properties > Fortran > Optimization nor Properties > Configuration Properties >Linker > Optimization.

John

0 Kudos
2 Replies
Steven_L_Intel1
Employee
463 Views

This message is a generic one which indicates that the Intel pre-linker, xilink, didn't like "something". In most cases there is a compile error earlier in the build which created a bad object, but sometimes there is no earlier error. xilink is automatically used for linking whether or not you are using the interprocedural optimization options.

The first thing I suggest is to do a complete rebuild of the project and then check the build log in the Debug or Release folder (not the output that shows in VS.)

0 Kudos
john_keenan
Beginner
463 Views
BuildLog.htm showed an error immediately before the two "problem during multi-file..." errors. It was a simple case of requiring surrounding quotes on the linker additionall dependencies.
0 Kudos
Reply