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

LNK4084 error

fpl
Beginner
630 Views
My source code compiles OK, but I get this error message during linking.

Linker Tools Warning LNK4084
total image size size exceeds max (256MB); image may not run
The application exceeds the limit of 256 megabytes.



The application does not run. What should I do?



0 Kudos
3 Replies
Steven_L_Intel1
Employee
630 Views
Well, it depends on what the total image size actually is. Doesn't the message say? Windows 95 and NT4 prior to SP3 can't handle images with more than 256MB combined code and static data, but later versions can handle up to about 1.75GB. If the size is displayed as negative, then that means you have exceeded 2GB and you need a 64-bit processor and OS. (Or reduce your array sizes.)

BTW, there is a CVF Knowledge Base article on this error...

Steve
0 Kudos
fpl
Beginner
630 Views
I put my program on a diet. The arrays are now a bit smaller. Everything now runs OK. Steve, thank you for your advice again!
0 Kudos
Steven_L_Intel1
Employee
630 Views
You can also consider using ALLOCATABLE arrays, which are especially useful if the actual used size of the array varies from run to run.

Steve
0 Kudos
Reply