473,466 Members | 4,869 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

C1060 while compiling large hard-coded char array with VS2005

I'm using VS2005 to compile a file that only contains a single large
(100MB) hard-coded char array.

It looks like:

unsigned char test[] = {
0x50,0x4b,0x3,0x4,0x14,0x0,0x0,0x0,0x8,0x0,0x5c,0x 6c,
...................
.........................
};

As mentioned, the length of test[] is ~100MB and the size of the
test.c file is ~500 MB with all the punctuation etc. While compiling,
cl.exe exits with the error:

test.c(622984) : fatal error C1060: compiler is out of heap space

I am running this with 2G RAM, and I can see the cl.exe process
consuming >1.5G of memory before it gives up.

Any ideas why cl is using 3 times as much memory?
Is there any "hard" limit on the size of the array, or the file?

Thanks,
Lubdha

Nov 13 '07 #1
0 1083

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

Similar topics

0
by: pruebauno | last post by:
Hello all, I am having issues compiling Python with large file support. I tried forcing the configure script to add it but then it bombs in the make process. Any help will be appreciated. ...
0
by: Tom | last post by:
I installed the 5 MS security patches this afternoon, and all of the sudden am having VC++ .NET 7.1 problems. Project that used to compile fine is intermittantly getting Internal Compiler Errors:...
1
by: Steve | last post by:
I am suddenly getting the obnoxious error C1060 when I try to compile my project. I have tried adjusting the /Zm switch as suggested by the help documents, but this is a project setting and not a...
6
by: Raja Cherukuri | last post by:
Hi, I am using Boost and VC 7.1 compiler has started complaining about out of heap space with C1060 after it crossed a certain size. No amount of "Zm" option changes work. Saw that there is a...
1
by: Rune Jorgensen (DDS) | last post by:
I use the C++ compiler with Visual Studio .NET 2003. OS is XP SP2. Our projects include many large 3rd party C++ include files. I have installed the hotfix mentioned in MSDN KB article 837437. It...
1
by: Mike Hutton | last post by:
I need some help. I am trying to set up our development environment so as to make life easy for my fellow developers (none of whom have used ASP.NET or VS.NET before). We are developing our...
2
by: Justin Naidl | last post by:
A group of friends and I are doing a RPG (role-playing game) maker for a school project. It occured to us, however, that if you want the user to be able to have almost complete control over the...
5
by: dovgani | last post by:
I have an unmanaged MFC project. The output is static lib. I would like to compile using /clr option. The native lib size is 64 megs and with /clr and /O1 options is 940 megs. Is it possibly...
2
by: Phil Davidson | last post by:
/* (Posted to microsoft.public.dotnet.languages.vc) In C++/CLI under Visual Studio 2005, creating an "enum class" member called "Equals" can cause compiler error C1060 (out of memory) and C1063...
8
by: WebSnozz | last post by:
I have an application written in C that does a lot of low level stuff. It does a lot of things like casting from void*'s. I want to create a new GUI for it in either C# or MC++, but reuse the...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.