Page 1 of 1

An internal error has occurred in the compiler [Solved]

Posted: Sat Mar 06, 2010 10:28 pm
by alc
This is to help anyone getting the rather non-specific error "fatal error C1001: An internal error has occurred in the compiler." when compiling in VS 2008. In my own code I had

Code: Select all

#define rectf irr::core::rect<f32>
to make my life a little easier. Now, after upgrading to 1.7.1 this is part of the rect.h file, and it results in the above error. Removing this #define solved the problem.

Posted: Sun Mar 07, 2010 11:00 am
by hybrid
Well, if you'd have used a typedef instead, this would be a simple warning or error instead of an infinite recursion or whatever made this problem to occur. Just use the proper language elements for such situations.