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

Linking archive, -ipo and undefined references

fbisetti
Beginner
463 Views

Hi all,


I'd like to (i) create an archive from a module compiled with -ipo, -xP -O3 flags; (ii) link that archive to a program.

The issue. When linking, the linker complaints about "undefined references" to subroutines which are in the archive. If I turn off the -ipo, -xP flags while compiling the objs that go in the archive, everything works fine.

Questions: (1) Does this mean I can't do IPO on obj files that go in an archive and are later on linked (2) Am I trying to do something that doesn't make sense? (3) Or am I messing up the linking order? (4) Is it a compiler issue?

I am attaching a small test that reproduces the problem.

Thanks for any help,
Fabrizio

0 Kudos
1 Reply
Steven_L_Intel1
Employee
463 Views

Fabrizio,

This is a user forum,not a support channel. Please submit your problem and test case to Intel Premier Support.

0 Kudos
Reply