CVS build - linking errors

Hi,
I recently downloaded the CVS build of SDL. It compiled fine, etc etc…
I get linking errors now whenever I try to use it, though. Basically,
there are two errors: multiple definition of ‘main’ (once in
SDLmain.lib, and once in libmingw32.a) as well as undefined reference
to’_alloca_probe’ in the function ‘WinMain at 16’ in SDLmain.lib. I’m
trying to compile the testgl.c source that comes with the CVS build.

Ken

Hi,
I recently downloaded the CVS build of SDL. It compiled fine, etc etc…
I get linking errors now whenever I try to use it, though. Basically,
there are two errors: multiple definition of ‘main’ (once in
SDLmain.lib, and once in libmingw32.a) as well as undefined reference
to’_alloca_probe’ in the function ‘WinMain at 16’ in SDLmain.lib. I’m
trying to compile the testgl.c source that comes with the CVS build.

What version of mingw are you using?
I’ve been building with mingw-2.0.0 and msys-1.0.8 with no problems.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Sam Lantinga wrote:

Hi,
I recently downloaded the CVS build of SDL. It compiled fine, etc etc…
I get linking errors now whenever I try to use it, though. Basically,
there are two errors: multiple definition of ‘main’ (once in
SDLmain.lib, and once in libmingw32.a) as well as undefined reference
to’_alloca_probe’ in the function ‘WinMain at 16’ in SDLmain.lib. I’m
trying to compile the testgl.c source that comes with the CVS build.

What version of mingw are you using?
I’ve been building with mingw-2.0.0 and msys-1.0.8 with no problems.

Well, I’m using mingw > 200, but I can’t find msys… I’m using cygwin
to compile the CVS code, which may or may not be the source of my
problems. Would it be more advisable to fall back to 1.2.5?

Ken

Well, I’m using mingw > 200, but I can’t find msys… I’m using cygwin
to compile the CVS code, which may or may not be the source of my
problems. Would it be more advisable to fall back to 1.2.5?

Does 1.2.5 work, and CVS doesn’t?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment