An internal error has occurred in the compiler [Solved]

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
alc
Posts: 31
Joined: Sun Jun 25, 2006 10:59 pm
Location: Denmark

An internal error has occurred in the compiler [Solved]

Post 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.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post 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.
Post Reply