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

Unresolved externals when linking with optimisation

wu_internet
Beginner
580 Views
I've got a Fortran Dll project which works OK compiled by IVF8.0 with optimisation disabled. However, when I tried to switch on optimisations, for example, use the switch O2 or O3, during linking process, it reported many unresolved externals, such as symbol _fltused, symbol alloca_probe ... , these symbols have not been used directly by my project, presumably they are some symbols related to the Fortran libraries. Anyone knows about these issues, please give me a hand.
Regards,
David
0 Kudos
4 Replies
TimP
Honored Contributor III
580 Views
On the face of it, this problem seems more likely caused by mixing in objects built with mingw.
0 Kudos
wu_internet
Beginner
580 Views

Could you please explain a little bit more about "mingw"?

Regards,

David

0 Kudos
TimP
Honored Contributor III
580 Views
You have quoted error messages which look as if you had attempted to link in .obj files built by that version of gcc. There is no run-time library compatibility between Intel Windows compilers and the various Windows implementations of gcc.
0 Kudos
wu_internet
Beginner
580 Views

Thanks for the help.

I might should have reported that the project was orginally converted from the compaq Fortran. After loads of frustration, I finally decided to start from scratch, althogh it cost me a lot of pain. Finally, I ended up without any problems when I was doing the optimisation. I stilldo not know what's causing the problem though. Anyway, the one-off pain has paid me back.

Regards,

David.

0 Kudos
Reply