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

linker error

dbuhl
Beginner
522 Views
I am compiling a large program that I did not write. An earlier version compiles and links fine. I just got a new version of the source with few changes. It includes the same libraries. It compiles fine, but the linker gives the error:

myNEC4da.obj : error LNK2019: unresolved external symbol _f_setmessageqq referen
ced in function CATEXP
myNEC4da.exe : fatal error LNK1120: 1 unresolved externals


The error refers to a function that hasn't changed a bit between versions. Any idea what might be going on or what library _f_setmessageqq is in? If I enable/disable compiler optimizations, it gives the same error but refers to a different function. Any help would be much appreciated.

thanks,
Dillon

0 Kudos
3 Replies
Steven_L_Intel1
Employee
522 Views
It's in ifqwin.lib. Is this a QuickWin project type? It needs to be if that routine is to be used.
0 Kudos
dbuhl
Beginner
522 Views
Steve, thanks for your timely assistance. I couldn't get it to work by using IQWIN or by setting it to be a windows app., but I just removed the offending statements and it links.

I have a new issue. This may not be the place to ask about it, but I want to check to make sure. My application runs in 64-bit Windows and dynamically allocates a very large array (~8GB). When I run the program, the 8GB is allocated but mostly to virtual memory; only 2GB of physical memory is allocated (I have 7.5GB installed). Is this a Windows/hardware issue, or could it have anything to do with the compiler/code?
-Dillon
0 Kudos
Steven_L_Intel1
Employee
522 Views
It is not sufficient to add USE IFQWIN or making it be a Windows app. There is a specific QuickWin project type that also causes the QuickWin libraries to be linked it.

The choice of how Windows allocates memory is up to Windows, it isn't a compiler or code issue. Offhand, I don't know what settings in Windows controls this.
0 Kudos
Reply