Hello all,
I have switched from Visual Studio 2008 to Visual Studio 2013. I have two different Allegro projects saved. One of them opens and compiles without issue, the other does not. The one that doesn't compile gives me the following:
Error 1 error C2632: 'char' followed by 'bool' is illegal c:\allegro5\include\allegro5\platform\astdbool.h 26 1 mm
Warning 2 warning C4091: 'typedef ' : ignored on left of 'unsigned char' when no variable is declared c:\allegro5\include\allegro5\platform\astdbool.h 26 1 mm
The section of code that the compiler is erroring out on is from astdbool.h:
Has anyone encountered this before?
I had the same.
It's because (I think) VC13 has stdbool.h and older versions don't.
I fixed it by editing include/allegro5/platform/alplatf.h and changing the line
/* #undef ALLEGRO_HAVE_STDBOOL_H */
to
#define ALLEGRO_HAVE_STDBOOL_H
If you're compiling from source I think you can edit alplatf.h.cmake - not sure about that.
Pete
Peter,
Thank you sir, that fixed it!
VT