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!

Multiply defined symbols

Svein-Atle_Engeseth
164 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
Black Belt
164 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.

Svein-Atle_Engeseth
164 Views

Hi mecej4,

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

Svein-Atle Engeseth

Reply