Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29282 Discussions

Linker error in debug mode when using member function from multiple modules

thomas_boehme
New Contributor II
806 Views
I am currently investigating the OO features of IVF11.1.035.

I am stuck with a problem, though:

When I compile a solution that uses a member function of a type(class) from within two different modules, the linker fails with multiply defined symbols DYNTYPE_PACK_0 and TBPLIST_PACK_0. This only happens in Debug mode. In Release mode, everything seems to be fine.

I have attached a minimal solution demostrating the problem.

Any help would be greatly appreciated

Regards,
Thomas
0 Kudos
1 Solution
Steven_L_Intel1
Employee
806 Views
This has been fixed in our sources - the fix should appear in the next update.

View solution in original post

0 Kudos
2 Replies
Steven_L_Intel1
Employee
806 Views
I can reproduce this. It is not tied specifically to debugging, but rather optimization level. If the optimization level is 1 or higher, the error goes away.

I will report this to the developers. The issue ID is DPD200137967. Thanks.
0 Kudos
Steven_L_Intel1
Employee
807 Views
This has been fixed in our sources - the fix should appear in the next update.
0 Kudos
Reply