LNK4084 error

LNK4084 error

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?

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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

Retired 12/31/2016

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!

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

Retired 12/31/2016

Leave a Comment

Please sign in to add a comment. Not a member? Join today