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
711 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 34

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 34

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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 viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

733 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