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

error #6405: The same named entity from different modules and/or program units cannot be referenced.

Ben_W_
Beginner
920 Views

Hi, all:

I'm having weird problem with Intel Fortran composer 2013 update 2. I'm trying to compile a simple sample code on using TCP/IP in IVF, see attached. Composer 2013 gave me the following error on all TCPIP functions:

error #6405: The same named entity from different modules and/or program units cannot be referenced.

 

But Composer 2011 can compile the same code without any problem. I also found in the forum that people are having similar problems in Composer 2013 update 2. What are really changed? Can someone help me understand?

Thanks,

Jim

 

 

 

0 Kudos
2 Replies
Steven_L_Intel1
Employee
920 Views

That name is defined in modules wsock32 and ws2_32. The difference seems to be that ws2_32 was added to ifwin for the 2013 compiler. We did this because other customers complained ifwin didn't have "everything" but perhaps there is too much overlap between wsock32 sand ws2_32. I have asked the developers to pull WS2_32 out of IFWIN - the issue ID is DPD200241877.

The solution for you is to use the individual Windows API module(s) rather than IFWIN.

0 Kudos
Ben_W_
Beginner
920 Views

Steve:

Thanks for your fast and helpful explanation. Problem is solved by changing to use wsock32 module.

Jim

0 Kudos
Reply