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

Multiply defined symbols

Svein-Atle_Engeseth
554 Views

Hi,

I get these errors after compiling a program, please see attachment.
They refer to multiply defined symbols like "for_close already defined in libifcoremdd.lib(libifcoremdd.dll)"

This happened  after I used a non intrinsic module in the program. The module contains one subroutine.
If I don't use the module, but add the subroutine to my program the errors go away.

The compiler version is 19.0.0.117

Any idea as to what is wrong?

Regards,

Svein-Atle Engeseth
 

0 Kudos
2 Replies
mecej4
Honored Contributor III
554 Views

You probably attempted to link objects and libraries, of which some had been compiled with the "multithreaded libraries" option and others with the "multithreaded dynamic libraries". Make sure to compile all the objects with one and the same option.

0 Kudos
Svein-Atle_Engeseth
554 Views

Hi mecej4,

Thank you. You are absolutely right, that was the problem.
Thanks.

Svein-Atle Engeseth

0 Kudos
Reply