A little program that does nothing

Hello folks,

I’m new to the list and new to SDL. Some months ago I read
the entire docs and found that SDL is a superb library, but
I had not time to work with it that time.
Today I downloaded MinGW, installed it with sucess,
downloaded the newest “binaries” (libraries and headers)
for SDL and tried to make it work.
Well, in fact I was able to make mingw32-gcc compile
a simple HelloWorld app, and then I had gone forward,
to compile a simple app using SDL.

The problem is: I added the SDL.h include, and simply
recompiled the same hello world, linking with the correct
libraries (-lmingw32 -lSDL -lSDLmain -mwindows) and the
program was correctly compiled, without any warnings.

Well… where is the problem then? The problem was shown
when I had run the program. The program had run but nothing
happened… (!)
I know it was compiled right, because no warnings were
reported (even with -Wall) and if I delete the sdl dll from
the directory the program warns me that “one os more components
needed are missing” in a dialog box.
But that’s all I got. No “HelloWorld” message printed on the
prompt when the DLL was present on the directory.

Any clues?

Thanks in advance!

[]'s

Daniel Caetano
@Daniel_Caetano

…“A necessidade de criatividade e’ o que contribui para a
mudanca. A criatividade mantem o criador vivo.” (Frank Herbert)
http://www.caetano.eng.br/ - This OS/2 system uptime is 0 days 00:14 hours.

Look for an stdout.txt or stderr.txt in the directory where you ran the
program, you should see your output there I think.On Sat, 2002-12-21 at 15:15, Daniel Caetano wrote:

But that’s all I got. No “HelloWorld” message printed on the
prompt when the DLL was present on the directory.

In windows, including SDL.h makes makes main() a #define, and uses it’s
own WinMain… This is so the program can run without starting a
console window. (I believe the Windows version of Gimp still has this
problem)… One of the things that I think SDL’s WinMain() function
does, is redirects STDERR and STDOUT to files… (I believe error.txt
and output.txt respectively)… I’d check to see if output.txt is where
your “HelloWorld” message went.

Hope that helps,

-LorenOn Sat, 2002-12-21 at 13:15, Daniel Caetano wrote:

Hello folks,

I’m new to the list and new to SDL. Some months ago I read
the entire docs and found that SDL is a superb library, but
I had not time to work with it that time.
Today I downloaded MinGW, installed it with sucess,
downloaded the newest “binaries” (libraries and headers)
for SDL and tried to make it work.
Well, in fact I was able to make mingw32-gcc compile
a simple HelloWorld app, and then I had gone forward,
to compile a simple app using SDL.

The problem is: I added the SDL.h include, and simply
recompiled the same hello world, linking with the correct
libraries (-lmingw32 -lSDL -lSDLmain -mwindows) and the
program was correctly compiled, without any warnings.

Well… where is the problem then? The problem was shown
when I had run the program. The program had run but nothing
happened… (!)
I know it was compiled right, because no warnings were
reported (even with -Wall) and if I delete the sdl dll from
the directory the program warns me that “one os more components
needed are missing” in a dialog box.
But that’s all I got. No “HelloWorld” message printed on the
prompt when the DLL was present on the directory.

Any clues?

Thanks in advance!

[]'s

Daniel Caetano
daniel at caetano.eng.br

…“A necessidade de criatividade e’ o que contribui para a
mudanca. A criatividade mantem o criador vivo.” (Frank Herbert)
http://www.caetano.eng.br/ - This OS/2 system uptime is 0 days 00:14 hours.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Look for an stdout.txt or stderr.txt in the directory where you ran the
program, you should see your output there I think.

Hummm… It’s true! (^=

Thanks and sorry… (^=

[]'s

Daniel Caetano
@Daniel_Caetano

…“A necessidade de criatividade e’ o que contribui para a
mudanca. A criatividade mantem o criador vivo.” (Frank Herbert)
http://www.caetano.eng.br/ - This OS/2 system uptime is 0 days 00:37 hours.On 21 Dec 2002 13:25:10 -0600, Shawn wrote: