UFO:Alien Invasion

Technical support => Mac => Topic started by: rimo on May 04, 2010, 09:57:06 pm

Title: [FIXED] compile error: conflicting types for ‘SDL_main’
Post by: rimo on May 04, 2010, 09:57:06 pm
Hi,

since last week I can't compile afoai anymore. make exits with an arror:

Code: [Select]
macbook$ make
 * [MOD] src/tools/ufomodel/ufomodel.c
src/tools/ufomodel/ufomodel.c:608: error: conflicting types for ‘SDL_main’
/opt/local/include/SDL/SDL_main.h:57: error: previous declaration of ‘SDL_main’ was here
...

The ./configure script went through.
The compilation worked already before too. And I don't remember to have changed anything in the build environment (may be updated macports).

Here is also the list of installed SDL libs:
Code: [Select]
macbook$ port list installed |grep libsdl
libsdl                         @1.2.14         devel/libsdl
libsdl_image                   @1.2.10         devel/libsdl_image
libsdl_mixer                   @1.2.11         audio/libsdl_mixer
libsdl_ttf                     @2.0.9          devel/libsdl_ttf

Any idea what the problem might be.


Rimo
===============
System: Mac OS 10.5.8
Title: Re: compile error: conflicting types for ‘SDL_main’
Post by: Mattn on May 04, 2010, 10:18:59 pm
please try latest revision - should already be fixed.
Title: [FIXED] Re: compile error: conflicting types for ‘SDL_main’
Post by: rimo on May 06, 2010, 04:40:03 pm
Yes, it works now.

Thanks,
Rimo