Solved

Microsoft Visual C++ 8.0 compiler error which occurs when the C++ class API and /or the number of C++ classes in a DLL becomes too large

Posted on 2013-06-19
6
677 Views
Last Modified: 2013-06-26
I am new at this, Please be patient,

I was wondering if anyone knew what the number of the Microsoft Visual C++ 8.0 compiler error which occurs when a C++ class API and /or the number of C++ classes in a DLL becomes too large. Thank you for your help.
 
Windows XP operating system

Microsoft Viisual studio 8,0 Compiler , service Pack 1
0
Comment
Question by:MaryCamster
6 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 39260343
That would probably most likely be C1002 (http://msdn.microsoft.com/en-US/library/c9e6fs6b%28v=vs.80%29.aspx): "compiler is out of heap space in pass 2"
0
 

Expert Comment

by:frankc122345678
ID: 39260459
Thank you for your reply jkr, could you let me know "if Microsoft Visual C++ 8.0 compiler error which occurs when the C++ class API and /or the number of C++ classes in a DLL becomes too large" could be solved by splitting the Visual C++ Studio project into 2 smaller DLL's
0
 
LVL 86

Expert Comment

by:jkr
ID: 39260505
>>could you let me know "if Microsoft Visual C++ 8.0 compiler error which occurs when the
>>C++ class API and /or the number of C++ classes in a DLL becomes too large" could be
>>solved by splitting the Visual C++ Studio project into 2 smaller DLL's

There is no general solution to that only solutions that re specific to your actual setup. You'd basically divide the code into two modules in a way that creates the least amount of problems...
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 32

Expert Comment

by:sarabande
ID: 39265087
the compiler's input objects are source files, not dll's. the dll is output of the linker. i never have seen a source file that was too big for compilation. the biggest file i can remember had about 50,000 lines. it probably included header files of same or greater total size.

if your system is low on heap memory it is more likely that the linker would report problems or error because of this. in my opinion it is only a rare chance to happen on a modern system. you also could/should upgrade to newer version of visual studio, for example visual studio 2012 (vc11) is 7 years younger than your compiler. if you were developing on windows xp you should go to vs2008 (vc9) which is more stable than vc8.

Sara
0
 

Author Comment

by:MaryCamster
ID: 39276926
May I ask that one or more of the Expert exchange community verify jkr's answer which I just accepted as the solution. Thank you.
0
 
LVL 32

Expert Comment

by:sarabande
ID: 39277673
MaryCamster, the question is solved and beside of me and jkr, no other expert will get noticed by your additional question. if you want another expertise you would need to ask a new question (beside jkr would reopen the question for you).

the error C1002 is a possible compiler error. i don't know whether it was thrown in the case you described. but as you don't describe an exact testcase, it is impossible to give an exact  answer. jkr wrote that it is "likely". i wouldn't go so far as i never got this error, but that is only my opinion.

Sara
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now