SDL and Lcc-win32 problems

I have a dilemna, I want to use SDL to develop my new
game idea that I have. I want to use SDL so it’ll be
cross-platform just on the off-chance that it turns
out to be a good game. I run linux but I want to do my
initial development under windows. I don’t have VC++
and don’t want it, I can’t find a place to download
mingw32 and everyone I’ve talked to says cygwin bites.
Normally I would use djgpp but that won’t work. So I’m
trying to use lcc-win32 which I’ve had some good
results with in the past. I’ve been trying to compile
some of the demos with lcc-win32 and all of them I try
I get the following two errors:

.text: undefined reference to ‘__alloca_probe’
.text: undefined reference to ‘_SDL_RegisterApp’

I’ve got SDL.lib and SDLmain.lib set up to be linked
in. I have SDL.h where it can get at them. Everything
is as it should be. So what could be causing those two
weird errors?
Thanks for taking the time to read this rambling mess.

Jared-


Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.

I have a dilemna, I want to use SDL to develop my new
game idea that I have. I want to use SDL so it’ll be
cross-platform just on the off-chance that it turns
out to be a good game. I run linux but I want to do my
initial development under windows. I don’t have VC++
and don’t want it, I can’t find a place to download
mingw32 and everyone I’ve talked to says cygwin bites.
Normally I would use djgpp but that won’t work. So I’m
trying to use lcc-win32 which I’ve had some good
results with in the past. I’ve been trying to compile
some of the demos with lcc-win32 and all of them I try
I get the following two errors:

.text: undefined reference to ‘__alloca_probe’
.text: undefined reference to ‘_SDL_RegisterApp’

It sounds like you need to link in another library for the alloca() function.
(?)

Also, is the symbol WIN32 defined by the compiler?
Look in SDL_main.h for the declaration of SDL_RegisterApp().

If you get it working, could you put together a short README, so I can
include it (or link to it) on the SDL website?

Thanks!
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

It sounds like you need to link in another library
for the alloca()
function.
(?)
Also, is the symbol WIN32 defined by the compiler?
Look in SDL_main.h for the declaration of
SDL_RegisterApp().
If you get it working, could you put together a short
README, so I can
include it (or link to it) on the SDL website?

Thanks!

-Sam Lantinga
(slouken at devolution.com)

I’ll check that out and see if that’s the case, and
then I can make a readme and an template makefile for
lcc. I’ll post on here as soon as it’s done.__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.