Djgpp+sdl

I’ve a problem
i try to use djgpp with libSDL.a for windows and i recieve a
segmentation fault message when my program run in function SDL_Init()
0x1720 and exit with code 0377.
it’s a library or compiler problem
please help me_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

I’ve a problem
i try to use djgpp with libSDL.a for windows and i recieve a
segmentation fault message when my program run in function SDL_Init()
0x1720 and exit with code 0377.
it’s a library or compiler problem
please help me

DJGPP isn’t supported though I keep hearing rumors that people are playing
with it.

In any case, grab the Mingw32 development environment, that’s the only
gcc-based Windows build environment that’s officially supported by SDL:
http://www.libsdl.org/Xmingw32/

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

My guess is the issue w/ DJGPP is that it only supports DOS (if memory
serves me). I think the SDL requires win32… am I wrong?

At 01:23 PM 2/12/01 -0800, you wrote:>> I’ve a problem

i try to use djgpp with libSDL.a for windows and i recieve a
segmentation fault message when my program run in function SDL_Init()
0x1720 and exit with code 0377.
it’s a library or compiler problem
please help me

DJGPP isn’t supported though I keep hearing rumors that people are playing
with it.

In any case, grab the Mingw32 development environment, that’s the only
gcc-based Windows build environment that’s officially supported by SDL:
http://www.libsdl.org/Xmingw32/

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software


Real software engineers don’t debug programs, they verify correctness.
This process doesn’t necessarily involve execution of anything on a
computer, except perhaps a Correctness Verification Aid package.

My guess is the issue w/ DJGPP is that it only supports DOS (if memory
serves me). I think the SDL requires win32… am I wrong?

Yep, you’re wrong.

http://www.cdn-net.com/sducros/rsxntdj/> -----Original Message-----

From: Joe Tennies [mailto:tennies at uwplatt.edu]

My guess is the issue w/ DJGPP is that it only supports DOS (if memory
serves me). I think the SDL requires win32… am I wrong?

I suggested long ago (if memory serves, SDL was at 0.8 or so back then!)
that removing SDL’s threading capabilities would make it a lot easier to
port SDL to DOS/djgpp. But then, threading is already such an integral
part of SDL by now (especially with the sound core) that it’s all but
impossible to do.On Mon, 12 Feb 2001, Joe Tennies wrote:


Rafael R. Sevilla <@Rafael_R_Sevilla> +63 (2) 4342217
ICSM-F Development Team, UP Diliman +63 (917) 4458925
OpenPGP Key ID: 0x0E8CE481

I suggested long ago (if memory serves, SDL was at 0.8 or so back then!)
that removing SDL’s threading capabilities would make it a lot easier to
port SDL to DOS/djgpp. But then, threading is already such an integral
part of SDL by now (especially with the sound core) that it’s all but
impossible to do.

Not true. Handling the sound interrupts directly serves the same purpose
as the audio thread, and the SDL audio is flexible enough so that it can
either use a thread or have the driver perform the callbacks directly.

SDL doesn’t use any other threads internally by default, so it would only
impact multi-threaded applications. The threading subsystem is set up with
stubs so all you have to do is link in the correct stub files.

FYI, the MacOS classic port of SDL doesn’t have thread support, and it
works just fine. :slight_smile:

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Threads can be implemented in DJGPP/DOS. There is a even a pthread()
implementation for DJGPP.

-nco> ----- Original Message -----

From: dido@pacific.net.ph (Rafael R. Sevilla)
To:
Sent: Wednesday, February 14, 2001 2:53 AM
Subject: Re: [SDL] djgpp+sdl

On Mon, 12 Feb 2001, Joe Tennies wrote:

My guess is the issue w/ DJGPP is that it only supports DOS (if
memory

serves me). I think the SDL requires win32… am I wrong?

I suggested long ago (if memory serves, SDL was at 0.8 or so back
then!)
that removing SDL’s threading capabilities would make it a lot
easier to
port SDL to DOS/djgpp. But then, threading is already such an
integral
part of SDL by now (especially with the sound core) that it’s all
but
impossible to do.


Rafael R. Sevilla +63 (2) 4342217
ICSM-F Development Team, UP Diliman +63 (917) 4458925
OpenPGP Key ID: 0x0E8CE481

DJGPP is only for DOS and you could use one of the best libs for it :

ALLEGRO:

www.talula.demon.co.uk

CU

“Neil C. Obremski” schrieb im Newsbeitrag
news:004e01c09b05$50c36ba0$1af80b3f at mecha…>

Threads can be implemented in DJGPP/DOS. There is a even a pthread()
implementation for DJGPP.

-nco

----- Original Message -----
From: “Rafael R. Sevilla”
To:
Sent: Wednesday, February 14, 2001 2:53 AM
Subject: Re: [SDL] djgpp+sdl

On Mon, 12 Feb 2001, Joe Tennies wrote:

My guess is the issue w/ DJGPP is that it only supports DOS (if
memory

serves me). I think the SDL requires win32… am I wrong?

I suggested long ago (if memory serves, SDL was at 0.8 or so back
then!)
that removing SDL’s threading capabilities would make it a lot
easier to
port SDL to DOS/djgpp. But then, threading is already such an
integral
part of SDL by now (especially with the sound core) that it’s all
but
impossible to do.


Rafael R. Sevilla +63 (2) 4342217
ICSM-F Development Team, UP Diliman +63 (917) 4458925
OpenPGP Key ID: 0x0E8CE481