From: Gustavo R. A. <gus...@po...> - 2004-02-16 08:35:13
|
Dennis Brakhane wrote: >Am Freitag, den 13.Februar 2004 um 14:04 schrieb Gustavo Ribeiro Alves: > > >>Well... I found the problem compiling GG. It has to do with allegro and >>devil. Apparently if you have allegro, devil will link against it and we >>will have this error: >> >> > >Hmm, okay. Can you try to edit /usr/include/IL/config.h (or whereever >that is) and comment you the _USE_ALLEGRO line? > > > Tryied that... didn't work.. As you feared it produces a lot of missing symbols... >However, I fear that this won't work because allegro is linked into >ilut, and we will get missing symbols. > >Please drop me a line if #undefining ALLEGRO works, otherwise, I will >add a check for this and have the test-program and FreeOrion append an >END_OF_MAIN when needed. > > None of the following codes worked: #undef ALLEGRO #include <IL/ilut.h> int main () { ilutInit(); ; return 0; } #undef ILUT_USE_ALLEGRO #include <IL/ilut.h> int main () { ilutInit(); ; return 0; } The one with END_MAIN works without a problem... |