Frage

habe ich konvertiere eine meiner Anwendung, die ursprünglich in MS Visual Studio 2008 geschrieben auf MS Visual C kompiliert werden ++ 6.0 ( meine vorherige Frage ).

Nach der Umwandlung aller jetzt mein Code in Release kompiliert, ohne Debug-Informationen. In Debug i stoßen ein seltsames Problem ... den Fehler C1063.

fatal error C1063: 
Error executing cl.exe. 
main.obj - 1 error(s), 163 warning(s)

Ihrer Meinung nach, was ist die beste Praxis, dieses Problem zu überwinden?

War es hilfreich?

Lösung

Fatal Error C1063

Visual Studio 6.0

compiler limit : compiler stack overflow

  • The program was too complex and caused the compiler stack to overflow. This error may be a result of recursive includes.

Tips

  • Simplify the program by splitting it into smaller source files, and recompile.

Do you have debug code that is accidently recursive?

Andere Tipps

I just ran in that error...

g++ would get it right since it has limits, but not as constrained as cl...

I found this page which I think is of interest in regard to this question.

http://msdn.microsoft.com/en-us/library/bdscwf1c%28v=vs.80%29.aspx

On my end I tried /Zm2000 to give 1Gb of space to the compiler stack, but that did not fix the problem. The only other way was to not have /O2 (i.e. with /Od it compiled and linked just fine.)

Actually, on first compile, the linker crashes and the on 2+ tries, cl spits out that error. I think it has to do with precompiled headers.

Just in case, since some people asked, I'm using my Controlled Variables header which is about 600Kb at this point. Just templates, but dead easy templates (really, look at them!) So I guess they use an optimization algorithm that probably checks most if not all the functions of the templates instead of just and only those necessary (which is a very small number.)

http://snapwebsites.org/project/controlled-vars

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top