#25 type clashes on Mac OS X

open
nobody
None
5
2012-07-18
2008-01-03
Anonymous
No

It seems that MacTypes.h:646 tries to redefine a type that has already been defined if <CoreFoundation CFBundle.h=""> is included.

i don't know if a precompiler command like #if !defined(MACTYPES) could fix this. So the types won't be redefined again.

The error message:
error: multiple types in one declaration
error: declaration does not declare anything

The line causing the error:

typedef UInt8 Byte;

Discussion

  • Logged In: NO

    Sorry for my early post. it seems like
    glui.h line 75 and following define the
    byte type and is the reason for the clash.

    ifndef Byte

    define Byte unsigned char

    endif

    a simple #undef Byte directly after

    include <GLUI glui.h=""> fixed this.

     


Anonymous


Cancel   Add attachments