Problem compiling under djgpp

Hello!
I’ve been using visual C++ to compile my programs in SDL until now.
Today I’m trying to use SDL under msdos using djgpp (I hate those dll
needed for programs compiled under visual c++). I’ve just downloaded
the compiler, so it’s updated. I’ve tried to use the precompiled
libraries available on the web and I get an error saying “an exception
ocurred” and there are a lot of numbers, in a window called “Subsystem
MSDOS of 16-bits”. I get the same error with an example from the web.
Maybe there are incompatibilities between my compiler and your
compiler?
So I’ve tryed to compile SDL (under msdos using djgpp) but I can’t do
it. Can anyone help me?
Thanks a lot.
Carlos.

AFAIK SDL does not support DOS. And no offense, but no one in their
right mind would still compile DOS programs in 2005.

What you’re really looking for is MingW.
http://www.mingw.org/
MingW is a minimalist GCC environment for Windows.

  • SROn 7/31/05, Carlos M. Casas Cuadrado <carlos.marce at gmail.com> wrote:

Hello!
I’ve been using visual C++ to compile my programs in SDL until now.
Today I’m trying to use SDL under msdos using djgpp (I hate those dll
needed for programs compiled under visual c++). I’ve just downloaded
the compiler, so it’s updated. I’ve tried to use the precompiled
libraries available on the web and I get an error saying “an exception
ocurred” and there are a lot of numbers, in a window called “Subsystem
MSDOS of 16-bits”. I get the same error with an example from the web.
Maybe there are incompatibilities between my compiler and your
compiler?
So I’ve tryed to compile SDL (under msdos using djgpp) but I can’t do
it. Can anyone help me?
Thanks a lot.
Carlos.

[…]

AFAIK SDL does not support DOS. And no offense, but no one in their
right mind would still compile DOS programs in 2005.

You’d be surprized how much DOS software is still in use and actively
maintained…! :smiley:

DOS (or Free compatible alternatives) is still used a bit in embedded
systems and other places where you can’t use a general purpose OS, an
RTOS is too expensive or overkill, or you don’t really need an OS at
all. (Which is often the case in embedded systems where the code
deals directly with custom hardware.) DOS is basically a glorified
boot loader anyway, so it fits the bill for some of those
applications pretty well.

//David Olofson - Programmer, Composer, Open Source Advocate

.- Audiality -----------------------------------------------.
| Free/Open Source audio engine for games and multimedia. |
| MIDI, modular synthesis, real time effects, scripting,… |
`-----------------------------------> http://audiality.org -’
http://olofson.nethttp://www.reologica.se —On Sunday 31 July 2005 22.20, Simon Roby wrote:

I agree with you on this one, there is some use in DOS under (x86)
embedded environments, however the parent poster was clearly not
talking about embedded development.

  • SROn 7/31/05, David Olofson wrote:

On Sunday 31 July 2005 22.20, Simon Roby wrote:
[…]

AFAIK SDL does not support DOS. And no offense, but no one in their
right mind would still compile DOS programs in 2005.

You’d be surprized how much DOS software is still in use and actively
maintained…! :smiley:

DOS (or Free compatible alternatives) is still used a bit in embedded
systems and other places where you can’t use a general purpose OS, an
RTOS is too expensive or overkill, or you don’t really need an OS at
all. (Which is often the case in embedded systems where the code
deals directly with custom hardware.) DOS is basically a glorified
boot loader anyway, so it fits the bill for some of those
applications pretty well.