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

x64 Fortran calling C, attempts to link bufferoverflowu.lib

TimP
Honored Contributor III
321 Views
I think it has been over a year since a similar subject came up, and I can't recall what posted information might relate to this question. On XP64, in a command line link, where Fortran calls C, the link fails until /Qipo- /link /nodefaultlib:bufferoverflowu.lib is set. Can this be corrected in configuration, e.g. in ifort.cfg ?
The problem doesn't occur when Fortran calls C++ code. Everything is compiled with ifort and icl 10.1.013, linked with "compatibility" OpenMP library and the VC9 components. Apparently, there is no bufferoverflowu.lib in the VC9 installation, nor is there any apparent use for it. The nodefaultlib directive is ignored if /Qipo- is omitted:

ifort -O3 -Qopenmp -assume:protect_parens -Qopenmp-lib:compat -Qfpp -Qlowercase
-us -Qipo- mains.obj loopsv.obj f90_msrdtsc.obj /link /nodefaultlib:bufferoverflowu.lib

mains.obj is an ifort compilation; the others are compiled by icl.
0 Kudos
2 Replies
Steven_L_Intel1
Employee
321 Views
Well, there's not yet official support of VC9. Have you tried adding /Qvc9 to the compile commands?

Tim, let me suggest that you report this through the normal support channels if /Qvc9 doesn't help.
0 Kudos
TimP
Honored Contributor III
321 Views
My compile script was using VC9 (without setting /GL-) instead of ICL, to make the C object. The fact that the linker was attempting IPO should have been a clue.
0 Kudos
Reply