From: Victor <vws...@ya...> - 2006-08-21 17:49:53
|
Your errors says: `true' undeclared `false' undeclared Maybe this could be some change inside the API which has #defines for true and false. As this was indeed a bad idea, so no surprise that these was removed or moved to the compatibility layer or anything else. As a simple solution, you may put #define true 1 and #define false 0 before the #include's, maybe these errors goes away. Victor --- Neil Roy <no...@co...> escreveu: > I tried recompiling my game, in the hopes that any audio problems > would > be resolved and I got the following error. Note, this game compiled > fine with older versions. > > 25 C:\Develop\DevCpp\include\allegro\base.h:39, from > C:\Develop\DevCpp\include\allegro.h In file included from > C:/Develop/DevCpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/allegro/base.h:39, > > from > C:/Develop/DevCpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/allegro.h > > > > > I also went to recompile JGMOD for use with the new version of > allegro > and got the following error(s) > > C:/Develop/DevCpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/allegro/inlin > e/gfx.inl:120: error: (Each undeclared identifier is reported only > once > C:/Develop/DevCpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/allegro/inlin > e/gfx.inl:120: error: for each function it appears in.) > C:/Develop/DevCpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/allegro/inlin > e/gfx.inl:120: error: `true' undeclared (first use in this function) > C:/Develop/DevCpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/allegro/inlin > e/gfx.inl: In function `is_inside_bitmap': > C:/Develop/DevCpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/allegro/inlin > e/gfx.inl:235: error: `true' undeclared (first use in this function) > In file included from > C:/Develop/DevCpp/bin/../lib/gcc/mingw32/3.4.2/../../../.. > /include/allegro/draw.h:75, > from > C:/Develop/DevCpp/bin/../lib/gcc/mingw32/3.4.2/../../../.. > /include/allegro.h:46, > from file_io.c:22: > C:/Develop/DevCpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/allegro/inlin > e/draw.inl: In function `rotate_sprite': > C:/Develop/DevCpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/allegro/inlin > e/draw.inl:329: error: `false' undeclared (first use in this > function) > C:/Develop/DevCpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/allegro/inlin > e/draw.inl: In function `rotate_sprite_v_flip': > C:/Develop/DevCpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/allegro/inlin > e/draw.inl:341: error: `true' undeclared (first use in this function) > C:/Develop/DevCpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/allegro/inlin > e/draw.inl: In function `rotate_scaled_sprite': > C:/Develop/DevCpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/allegro/inlin > e/draw.inl:353: error: `false' undeclared (first use in this > function) > C:/Develop/DevCpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/allegro/inlin > e/draw.inl: In function `rotate_scaled_sprite_v_flip': > C:/Develop/DevCpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/allegro/inlin > e/draw.inl:365: error: `true' undeclared (first use in this function) > C:/Develop/DevCpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/allegro/inlin > e/draw.inl: In function `pivot_sprite': > C:/Develop/DevCpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/allegro/inlin > e/draw.inl:377: error: `false' undeclared (first use in this > function) > C:/Develop/DevCpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/allegro/inlin > e/draw.inl: In function `pivot_sprite_v_flip': > C:/Develop/DevCpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/allegro/inlin > e/draw.inl:386: error: `true' undeclared (first use in this function) > C:/Develop/DevCpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/allegro/inlin > e/draw.inl: In function `pivot_scaled_sprite': > C:/Develop/DevCpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/allegro/inlin > e/draw.inl:395: error: `false' undeclared (first use in this > function) > C:/Develop/DevCpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/allegro/inlin > e/draw.inl: In function `pivot_scaled_sprite_v_flip': > C:/Develop/DevCpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/allegro/inlin > e/draw.inl:404: error: `true' undeclared (first use in this function) > make: *** [../obj/mingw32/file_io.o] Error 1 > > Again, both of these compiled fine before. I simply re-installed > allegro and recompiled it with no problems, then recompiled these two > > (both were cleaned first as well) > > > -- > Neil Roy > > "My general feeling is that computers are doing more harm than good." > - > Jay Miner (father of the Amiga) > > begin:vcard > fn:Neil Roy > n:Roy;Neil > email;internet:no...@co... > note;quoted-printable:DO NOT ADD THIS EMAIL ADDRESS TO MAILING LISTS > WITHOUT MY EXPRESS WRITTEN= > PERMISSION.=0D=0A= > =0D=0A= > I WILL FILTER OUT ALL UNSOLICITED EMAILS, THEY WILL NOT GET READ AND > I= > WILL NOT PURCHASE ANYTHING SOLD FROM COMPANIES THAT SEND THEM. > x-mozilla-html:TRUE > version:2.1 > end:vcard > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> -- > https://lists.sourceforge.net/lists/listinfo/alleg-main _______________________________________________________ Você quer respostas para suas perguntas? Ou você sabe muito e quer compartilhar seu conhecimento? Experimente o Yahoo! Respostas ! http://br.answers.yahoo.com/ |