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

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

rogcar
Beginner
937 Views

Hello there,

I am stuck with the same problem that thomas_boehme faced a few days ago, in http://software.intel.com/en-us/forums/showthread.php?t=67007 . When I link the files in Debug mode, the "multiply defined symbols DYNTYPE_PACK_0 and TBPLIST_PACK_0" shows up, but in Release mode the erros goes away. But then, in runtime, another error shows up. In the attached file, you may notice that the routine calls itself for no reason (Notice the numbers in screen - The first line is correct, but the second comes from nowhere). In a bigger project, the same error leads to acall to a routine that has never been called elsewhere (it was still under development).

Any help would be greatly appreciated

Regards,
Roger

0 Kudos
5 Replies
Lorri_M_Intel
Employee
937 Views

I've reproduced the runtime failure, and have reported it into the problem reporting system. Its internal id is:
DPD200140130

I'm sure Steve will update this when a fixed release is available.

- Lorri
0 Kudos
thomas_boehme
New Contributor II
937 Views
The problem I originally reported has been fixed in the newest release 11.1.046. With that version, your test problem also builds well (both debug and release).

However, the fact that the routines calls itself although it should remains.

regards,
Thomas

0 Kudos
rogcar
Beginner
937 Views
Thanks Lorri

Hope that you fix it soon.

Regards,
Rogerio

0 Kudos
Steven_L_Intel1
Employee
937 Views
The "calls the wrong routine" error has been fixed in our sources. The fix should appear in "Update 3", currently scheduled for late October.
0 Kudos
Steven_L_Intel1
Employee
937 Views
This is fixed in 11.1 Update 3.
0 Kudos
Reply