473,387 Members | 1,897 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Warning message

Hello,
My program in C runs fine on visual stdio. I get this warning

warning LNK4084: total image size 437272576 exceeds max (268435456);
image may not run

but the results are fine .Can someone guide me as to what this
message is and how i can get rid of it .

Arush

May 9 '07 #1
2 2338
* arush:
Hello,
My program in C runs fine on visual stdio. I get this warning

warning LNK4084: total image size 437272576 exceeds max (268435456);
image may not run

but the results are fine .Can someone guide me as to what this
message is and how i can get rid of it .
It means your program is larger than some limit imposed by your
environment (268435456 bytes = 256 MiB).

To get rid of that warning you need to reduce the size of your executable.

About the only way you can get an executable that large is by using a
namespace level large raw array. Use std:.vector instead. And just say
no to globals.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
May 9 '07 #2
On Thu, 10 May 2007 00:26:42 +0200, Alf P. Steinbach wrote:
>* arush:
>Hello,
My program in C runs fine on visual stdio. I get this warning

warning LNK4084: total image size 437272576 exceeds max (268435456);
image may not run

but the results are fine .Can someone guide me as to what this
message is and how i can get rid of it .

It means your program is larger than some limit imposed by your
environment (268435456 bytes = 256 MiB).
Yep. I was going to suggest to look at the MS docs... but this time
the OP is right: all I can see there is "The application exceeds the
limit of 256 megabytes.".

That's odd, as normally the MS documentation isn't so useless (render
unto Caesar... :-))

Now, if memory serves me correctly, Windows 95 and NT 4.0 pre-SP3 had
a process virtual address space limit of 256 MiB. The rest of the
Windows 32-bit family members have a 2 GiB limit (though linkers
aren't required to reach it :-)). The warning can be suppressed, but
he should really shrink the executable a bit :-s

--
Gennaro Prota
https://sourceforge.net/projects/breeze/
May 9 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: rob | last post by:
Hey, I'm getting an error message (C4786) while compiling some code that contains a vector of strings "vector <string> myVector(4);" i've added "#pragma warning(disable:4786)" to the...
12
by: prashna | last post by:
Hi all, I am new to C and I am working on some simple programs.I am getting the following warning which I am not able to find what it is, please let me know what is causing this warning.Also What...
29
by: junky_fellow | last post by:
Consider the following piece of code: struct junk { int i_val; int i_val1; char c_val; }; int main(void) {
1
by: billa1972 | last post by:
Hi, I am trying to hook into Yellow Freight's rating webservice. Below is the wsdl. When i try and create a proxy file with wsdl.exe i get the following errors, see below. Also, when i...
3
by: Chuck Cobb | last post by:
I'm doing a CSharp project in VS2005 and I'm getting some strange warning messages. The problem is that the warning messages don't link to anything in my code so they are very difficult to track...
5
by: Peter Ritchie [C# MVP] | last post by:
I've purposely been ignoring a CA2122 warning in some C++ interop code I've been working on for quite some time. I've just recently had the cycles to investigate the warning. The warning message...
1
by: Ian | last post by:
I've just discovered the msclr::lock class in the C++ Support Library online documentation. This seems like a much cleaner way to implement thread protection than using...
2
by: BSeab1024SE | last post by:
In MS Visual C++ some code I wrote generated the warning "conversion from 'int' to 'const float', possible loss of data." In the process of trying to determine if I could rewrite the code to...
92
by: Heinrich Pumpernickel | last post by:
what does this warning mean ? #include <stdio.h> int main() { long l = 100; printf("l is %li\n", l * 10L);
4
by: cody | last post by:
It is possible to declare and use/instantiate a class with a uninitialized readonly field without even a compiler warning. Why don't I get warnings? public class Stuff { public readonly int a;...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.