warning LNK4084 : total image size ??????? exceeds max (268435456); image may not run
정적메모리( 배열 ) 의 크기가 256 M 를 초과하게 되면 생기는 문제
동적 메모리로 할당해서 해결 하던지 아니면 밑에 처럼 해결하던지....
기본 : 256 MB,
확장 : 1.75GB
옵션에서 확장 : /ignore:4084
Project -> Settings -> Link At the end of the Project Options box
/ignore:4084
Description: When linking an application which contains large arrays, the linker gives the warning "LNK4084 - total image size exceeds max (268435456); image may not run".
Explanation: Windows 95 and Windows NT 4.0 have a limit for the total size of static code and data of 256MB. If the amount of static code and data exceeds this size, the image may not execute. This is a limitation in the operating system and not in Visual Fortran or its tools. The most common cause of large static data is large local or COMMON arrays. The linker issues an informational warning in this case to alert! you of the potential problem.
However, if the actual image size is displayed as a negative value, that means that the image size exceeds 2GB and your program will not run on any version of 32-bit Windows.
Solution: For Windows NT 4.0, install Microsoft's Windows NT Service Pack 3 (or later). This raises the limit on static code and data to 1.75GB. However, the linker is not modified by this update and will continue to issue the warning, which can be ignored. The limit on Windows 98, Windows 2000 and Windows XP is 1.75GB, the same as Windows NT 4.0 with Service Pack 3 - if your application will be not be running on Windows 95, or on Windows NT 4.0 prior to SP3, and the actual image size is not displayed as a negative value, you can ignore this message.
For Windows 95, Microsoft has not released an update which raises the limit.
If you wish to prevent the message from being issued when you link, select Project..Settings..Link. At the end of the Project
Options box, type in:
/ignore:4084
An alternative is to make the large arrays ALLOCATABLE. Dynamically allocated data is not subject to the 256MB limit.
'컴퓨터 > OS' 카테고리의 다른 글
윈도우즈 10 업데이트 KB4524244 삭제할것 (0) | 2020.02.20 |
---|---|
[윈도] ntldr is missing Ctrl+Alt+Del 로인해 부팅 안될때 (0) | 2011.04.29 |
Windows Xp CD 자동 설치 만들기 (0) | 2010.11.28 |
윈도우 7 무인설치 응답파일 만들기 (0) | 2010.11.28 |
해킨토시 / 리눅스 (0) | 2010.11.23 |