project-navigation
Personal tools

Author Topic: [FIXED] compile error: conflicting types for ‘SDL_main’  (Read 6342 times)

Offline rimo

  • Cannon Fodder
  • **
  • Posts: 8
    • View Profile
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
« Last Edit: May 06, 2010, 04:40:33 pm by rimo »

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: compile error: conflicting types for ‘SDL_main’
« Reply #1 on: May 04, 2010, 10:18:59 pm »
please try latest revision - should already be fixed.

Offline rimo

  • Cannon Fodder
  • **
  • Posts: 8
    • View Profile
[FIXED] Re: compile error: conflicting types for ‘SDL_main’
« Reply #2 on: May 06, 2010, 04:40:03 pm »
Yes, it works now.

Thanks,
Rimo