Serving the Quantitative Finance Community

 
User avatar
jaccker
Topic Author
Posts: 1
Joined: July 18th, 2004, 9:36 pm

How to solve this c++ debug problem

March 28th, 2006, 2:20 am

Hi, I am compiling a c++ lib, and i get the following messege:: fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'E:\8168\vc98\p2\src\P2\ehexcept.c', line 577) Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more informationError executing cl.exe.Any one can help me out?Thanks a lot!
Last edited by jaccker on March 27th, 2006, 10:00 pm, edited 1 time in total.
 
User avatar
mj
Posts: 12
Joined: December 20th, 2001, 12:32 pm

How to solve this c++ debug problem

March 28th, 2006, 2:53 am

ouch, that means the compliler is buggy not your code, i used to get this using the complex number class in visual C++ 6.0 in release mode
 
User avatar
Athletico
Posts: 14
Joined: January 7th, 2002, 4:17 pm

How to solve this c++ debug problem

March 28th, 2006, 4:56 am

mj is right; in particular this is possibly the compiler bug in question.advice: upgrade to Visual Studio 6.0 Service Pack 3 or later.
 
User avatar
untwigged
Posts: 2
Joined: January 14th, 2006, 3:21 pm

How to solve this c++ debug problem

March 28th, 2006, 5:44 pm

If you're using a later version of the compiler this message often means that you've got invalid code, the complier just can't work out what's wrong. There's a nice name for it - an ICE.
 
User avatar
Cuchulainn
Posts: 23029
Joined: July 16th, 2004, 7:38 am

How to solve this c++ debug problem

March 28th, 2006, 6:42 pm

QuoteOriginally posted by: untwiggedIf you're using a later version of the compiler this message often means that you've got invalid code, the complier just can't work out what's wrong. There's a nice name for it - an ICE.I think this is the correct conclusion in many cases.Used to get it with templates, just means the compiler cannot figure out your code. Solution is to read the code good and make sure you don't hava typos.A while ago the Zorteth compiler error msg was: Ring LONDON 020 *********
Last edited by Cuchulainn on March 27th, 2006, 10:00 pm, edited 1 time in total.
 
User avatar
Tone
Posts: 0
Joined: January 5th, 2004, 6:31 pm

How to solve this c++ debug problem

March 28th, 2006, 7:29 pm

yes, compiler bug, I often saw it with templates in earlier Microsoft compilers. If you there's no later version, usually best thing is to simplify your code (eg split it up into different files/functions, reduce number of includes) and/or to comment bits out until you find the line(s) of code that are causing the problem and then rewrite those lines of code in a different way. Regards,
 
User avatar
Cuchulainn
Posts: 23029
Joined: July 16th, 2004, 7:38 am

How to solve this c++ debug problem

March 29th, 2006, 11:02 am

QuoteOriginally posted by: Toneyes, compiler bug, I often saw it with templates in earlier Microsoft compilers. If you there's no later version, usually best thing is to simplify your code (eg split it up into different files/functions, reduce number of includes) and/or to comment bits out until you find the line(s) of code that are causing the problem and then rewrite those lines of code in a different way. Regards,Agree. I forgot to say that ICE was common in VC++ 6.0. First time I saw it I considered a support contract with MS
Last edited by Cuchulainn on March 28th, 2006, 10:00 pm, edited 1 time in total.
 
User avatar
SierpinskyJanitor
Posts: 1
Joined: March 29th, 2005, 12:55 pm

How to solve this c++ debug problem

March 30th, 2006, 5:06 pm

download the VSSP6, install it and retry, if that doesn´t work, you´re probably compiling some 3rd party lib which must have prepared an ms-safe version. If this is not the case, then stop using Templace Specialization with MS Visual Studio, the compiler simply can´t parse it.adios.