LCC-Win32 is a no-go with SDL

Well I’ve tried and tried, and nothing seems to work.
So I give up, I’m going to break down and use mingw32.
If anyone decides to take a crack at lcc-win32 and
does manage to get it working, please let me know.
Well that’s about it, hopefuly with the switch to
mingw32 I’ll get some good stuff done.

Jared-


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

Jared wrote:

Well I’ve tried and tried, and nothing seems to work.
So I give up, I’m going to break down and use mingw32.

[----]

What about Cygnus Cygwin ?

Bye.–

  • @G.Gabriele ---------------+
    | Linux |
    ±--------------- the free philosophy -+

G.Gabriele wrote:

Jared wrote:

Well I’ve tried and tried, and nothing seems to work.
So I give up, I’m going to break down and use mingw32.

[----]

What about Cygnus Cygwin ?

I tried that one. I didn’t succeed. Guess I’m too stupid in C things :wink:
I would VERY interested if someone figures out how to do it with cygwin.

Regards,
Martin

I’ve tried SDL with cygwin, but it doesn’t work (I’ve forgotten specific
error messages, etc.). It will work under cygwin if you install the mingw
compiler, includes, and libraries under cygwin itself. These means
creating a separate directory structure (/usr/local perhaps) and
extracting the mingw distribution into that directory. Update your PATH,
and remember to do a `CC=i386-mingw32-gcc’ or whatever when it’s time to
configure AND make.

CC=i386-mingw32-gcc configure -v
CC=i386-mingw32-gcc make
make install

Hmm, also I’m still having problems with mingw32 (natively) because the
configure.in for the test directory (the autoconf macro that checks for
SDL) doesn’t define main with argc and argv. I had to modify SDL_main.h
to get it to work. Also you have to explicitly declare main() under
mingw32, just like VC or you’ll get an undefined reference to WinMain at 16.
That’s also part of SDL_main.h (I think).

Any more questions, let me know.

MarcusOn 5 Feb 2000, Martin Pirker wrote:

G.Gabriele wrote:

Jared wrote:

Well I’ve tried and tried, and nothing seems to work.
So I give up, I’m going to break down and use mingw32.

[----]

What about Cygnus Cygwin ?

I tried that one. I didn’t succeed. Guess I’m too stupid in C things :wink:
I would VERY interested if someone figures out how to do it with cygwin.

Regards,
Martin

Hmm, also I’m still having problems with mingw32 (natively) because the
configure.in for the test directory (the autoconf macro that checks for
SDL) doesn’t define main with argc and argv. I had to modify SDL_main.h
to get it to work. Also you have to explicitly declare main() under
mingw32, just like VC or you’ll get an undefined reference to WinMain at 16.
That’s also part of SDL_main.h (I think).

Regarding the undefined reference problem, I thought that declaring main()
without an explict return type was the way to avoid that problem… seems to
work for me, at least… or is this what you meant? On the other hand, my
program dies with an illegal instruction under Windows mingw32 upon startup,
so maybe I’m on the wrong track. I don’t currently have any idea why it
does that.On Sat, Feb 05, 2000 at 11:31:10AM -0600, M. R. Brown wrote:


loki
@eloki_at_zip.com.au

Dare I disturb the universe? You bet I do! :slight_smile:

Same thing happens to me, but I haven’t had time to debug it, yet. If I
remember correctly, it was version 1.0.3 .

Also, how exactly can I build the newest SDL? What tools do I need?
The web page is for cross compiling instructions, last time I checked.

Do I need, libtool, automake, autoconf? And do these compile under
mingw32 on Win32?

Thanks.

eloki at zip.com.au wrote:>

On the other hand, my
program dies with an illegal instruction under Windows mingw32 upon startup,
so maybe I’m on the wrong track. I don’t currently have any idea why it
does that.