[SDL] Compiling SDL from CVS with MSYS/MinGW

John Popplewell john at johnnypops.demon.co.uk
Wed Feb 22 06:24:38 PST 2006


On Tue, Feb 21, 2006 at 08:45:30PM -0800, Sam Lantinga wrote:
> > I'm having problems building SDL from CVS. I've done a clean checkout
> > and run ./autogen.sh. When I run ./configure I get a set of errors and
> > ./configure fails:
> 
> > ...
> > Generating dependencies for ./src/SDL.c
> > ./build-scripts/makedep.sh: eval: line 3: syntax error: unexpected end of file
> 
> Try it now.  I simplified it. :)
Works fine now, thanks.

> 
> > Also, there are a lot of .#nnn_headerfile_h files left behind in the
> > SDL12 top-level directory.
> 
> You can just remove them.  They normally get cleaned up when it finishes.
They are still being left behind, clogging up my Windows Explorer :)


When building other projects, I get a set of warnings everytime SDL.h is
included:

In file included from C:/msys/1.0/local/include/SDL/SDL.h:31,
                 from src/progressbar.h:34,
                 from src/progressbar.c:31:
C:/msys/1.0/local/include/SDL/SDL_cpuinfo.h:39: warning: function declaration isn't a prototype
C:/msys/1.0/local/include/SDL/SDL_cpuinfo.h:43: warning: function declaration isn't a prototype
C:/msys/1.0/local/include/SDL/SDL_cpuinfo.h:47: warning: function declaration isn't a prototype
C:/msys/1.0/local/include/SDL/SDL_cpuinfo.h:51: warning: function declaration isn't a prototype
C:/msys/1.0/local/include/SDL/SDL_cpuinfo.h:55: warning: function declaration isn't a prototype
C:/msys/1.0/local/include/SDL/SDL_cpuinfo.h:59: warning: function declaration isn't a prototype
C:/msys/1.0/local/include/SDL/SDL_cpuinfo.h:63: warning: function declaration isn't a prototype
C:/msys/1.0/local/include/SDL/SDL_cpuinfo.h:67: warning: function declaration isn't a prototype

Here is line 39:
extern DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC();

If I change it to:
extern DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC(void);

it shuts up,

cheers,
John.





More information about the SDL mailing list