Lost Adventurer, Aleks Kirilenko (3D)
LC #42 Pipers Alley

View Full Version : error C2362 when including MTypes.h

05-06-2005, 04:25 AM

I am trying to compile a maya plugin but when I include files that use MTypes.h or I include MTypes.h I get:

error 2632: 'char' followed by 'bool' is illegal

because of this:
typedef unsigned char bool;

How can I get around this? I thought maya plugins are supposed to compile well in VC++

05-07-2005, 04:02 PM
for anyone else having this trouble, if you are developing on windows, just add NT_PLUGIN to your preprocessor definitions.

CGTalk Moderation
05-07-2005, 04:02 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.