View Full Version : Linker warning LNK4084.
R. T. (Fortran Man)
09-03-2003, 06:26 PM
Why is the linker warning "LNK4084 - total image size exceeds max (268435456); image may not run" generated?
Lahey Support
09-03-2003, 06:50 PM
This message is generated by the Microsoft linker. It can be ignored when the executable will not be run on Windows 95 or NT 4.0 (prior to Service Pack 3). The LF95 option "-ignore:4084" can be used to suppress this warning message.
Windows 95 and NT 4.0 (prior to SP3) have a limit on the virtual address space of processes or applications of 256 MB. Windows XP/2000/NT 4.0 (SP3+)/Me/98 have a limit of 2 GB. For more information, including how to increase the limit to 3 GB, see Memory Support and Windows Operating Systems (http://www.microsoft.com/whdc/hwdev/platform/server/pae/PAEmem.mspx) .
A program can contain a number of allocatable arrays that exceed the limit, as long as the total sizes of those that are allocated at any point during execution do not exceed the limit.
Some settings may have changed on my Laptop. But I have the same set of codes ... compiled fine last year without the warning. The executable doesn't crash either. Now, I made a minor change to the output statement to include another variable ... I got LNK4084 warning message as well as getting the executable to crash. I tried compiling the old codes (2 years ago) and the same thing happened. What else can I do?
The link to microsoft may have change since it's taking me to no where.
Additional info that may help :)
OS: Windows XP Pro Version 2002 SP2
1.00 GB of RAM
Total image size 888MB, definitely bigger than 256MB but less than 2GB.
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.