What happened to my stdout.txt & stderr.txt ? (SDL 1.2.12)

Hello folks,
I’m hoping someone can point out to me a simple explanation/solution for the
problem I’m having. Here’s the deal: I recently noticed that my game project
no longer outputs to stdout.txt(I’ve been throwing several diagnostic
statements at it), and that there is no stderr.txt, either. (Neither of
these files is created upon running the executable). I also recently
upgraded to SDL 1.2.12 - and the two are related - here’s how I know:

I have an older backup of my program project, compiled with SDL 1.2.11,
which does output the stdout.txt, and when I re-compile it with the SDL
1.2.12 libs, it no longer outputs to stdout.txt, even when run with the
1.2.11 .dll (or the 1.2.12).

Is there something simple I’m missing? Am I supposed to manually redirect
the stdout stream now? Thanks in advance for any help!
-Dave

What compiler/platform are you using? I have seen that Visual Studio will
output these files into the folder that contains your .sln file and not the
directory your .exe is running from. Not sure if that is your problem, but
I thought I would pass on the info.

Ken Rogoway
Homebrew Software
http://www.homebrewsoftware.com/> ----- Original Message -----

From: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of David Olsen
Sent: Saturday, August 25, 2007 10:35 AM
To: A list for developers using the SDL library. (includes SDL-announce)
Subject: [SDL] What happened to my stdout.txt & stderr.txt ? (SDL 1.2.12)

Hello folks,
I’m hoping someone can point out to me a simple explanation/solution for the
problem I’m having. Here’s the deal: I recently noticed that my game project
no longer outputs to stdout.txt(I’ve been throwing several diagnostic
statements at it), and that there is no stderr.txt, either. (Neither of
these files is created upon running the executable). I also recently
upgraded to SDL 1.2.12 - and the two are related - here’s how I know:

I have an older backup of my program project, compiled with SDL 1.2.11,
which does output the stdout.txt, and when I re-compile it with the SDL
1.2.12 libs, it no longer outputs to stdout.txt, even when run with the
1.2.11 .dll (or the 1.2.12).

Is there something simple I’m missing? Am I supposed to manually redirect
the stdout stream now? Thanks in advance for any help!
-Dave


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.484 / Virus Database: 269.12.6/971 - Release Date: 8/24/2007
2:59 PM

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.484 / Virus Database: 269.12.6/971 - Release Date: 8/24/2007
2:59 PM

Ah, yes, I did forget to mention that I was using MSVC++2005 Express
edition. I’ve looked in the “debug” and “release” folders, but no luck. If I
compile my project as a “console” app instead of a “windows” app, then I can
see all of the stdout output in the console window(which has never happened
before with SDL projects of mine). Also, the stdout.txt doesn’t appear
whether I run the program from the MSVC IDE or just run the executable
manually…

Is there anyone else who uses MSVC++2005 with 1.2.12 who is also missing the
stdout.txt/stderr.txt? Or am I alone in this puzzling occurrence?

Thanks,
-Dave> ----- Original Message -----

From: ken@homebrewsoftware.com (Ken Rogoway)
To: "‘A list for developers using the SDL library. (includes SDL-announce)’"

Sent: Saturday, August 25, 2007 12:10 PM
Subject: Re: [SDL] What happened to my stdout.txt & stderr.txt ? (SDL
1.2.12)

What compiler/platform are you using? I have seen that Visual Studio will
output these files into the folder that contains your .sln file and not
the
directory your .exe is running from. Not sure if that is your problem,
but
I thought I would pass on the info.

Ken Rogoway
Homebrew Software
http://www.homebrewsoftware.com/

-----Original Message-----
From: sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org]
On
Behalf Of David Olsen
Sent: Saturday, August 25, 2007 10:35 AM
To: A list for developers using the SDL library. (includes SDL-announce)
Subject: [SDL] What happened to my stdout.txt & stderr.txt ? (SDL 1.2.12)

Hello folks,
I’m hoping someone can point out to me a simple explanation/solution for
the
problem I’m having. Here’s the deal: I recently noticed that my game
project
no longer outputs to stdout.txt(I’ve been throwing several diagnostic
statements at it), and that there is no stderr.txt, either. (Neither of
these files is created upon running the executable). I also recently
upgraded to SDL 1.2.12 - and the two are related - here’s how I know:

I have an older backup of my program project, compiled with SDL 1.2.11,
which does output the stdout.txt, and when I re-compile it with the SDL
1.2.12 libs, it no longer outputs to stdout.txt, even when run with the
1.2.11 .dll (or the 1.2.12).

Is there something simple I’m missing? Am I supposed to manually redirect
the stdout stream now? Thanks in advance for any help!
-Dave


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.484 / Virus Database: 269.12.6/971 - Release Date: 8/24/2007
2:59 PM

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.484 / Virus Database: 269.12.6/971 - Release Date: 8/24/2007
2:59 PM


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

I’m going to have to check this out. With output directed to console (as
it should be) there is always the option to redirect to file or use
fstream to output own data to file whereas with everything shoved into
text files there is no alternative to force output onto the console
screen.

I consider this an improvement.On Sat, 2007-08-25 at 14:15 -0500, David Olsen wrote:

Ah, yes, I did forget to mention that I was using MSVC++2005 Express
edition. I’ve looked in the “debug” and “release” folders, but no luck. If I
compile my project as a “console” app instead of a “windows” app, then I can
see all of the stdout output in the console window(which has never happened
before with SDL projects of mine). Also, the stdout.txt doesn’t appear
whether I run the program from the MSVC IDE or just run the executable
manually…

Is there anyone else who uses MSVC++2005 with 1.2.12 who is also missing the
stdout.txt/stderr.txt? Or am I alone in this puzzling occurrence?


Yahoo! Messenger - with free PC-PC calling and photo sharing. http://uk.messenger.yahoo.com

I use MSVC 2003 with SDL 1.2.12. The stdout can be seen in the cmd window if
the project is a “console” app, without any stderr.txt file.
I think it may be related to the define of “main”. In my project, I
un-define the main using #undef main. It may prevent the stderr output, but
I’m not sure.On 8/26/07, David Olsen wrote:

Ah, yes, I did forget to mention that I was using MSVC++2005 Express
edition. I’ve looked in the “debug” and “release” folders, but no luck. If
I
compile my project as a “console” app instead of a “windows” app, then I
can
see all of the stdout output in the console window(which has never
happened
before with SDL projects of mine). Also, the stdout.txt doesn’t appear
whether I run the program from the MSVC IDE or just run the executable
manually…

Is there anyone else who uses MSVC++2005 with 1.2.12 who is also missing
the
stdout.txt/stderr.txt? Or am I alone in this puzzling occurrence?

Thanks,
-Dave

----- Original Message -----
From: “Ken Rogoway”
To: "‘A list for developers using the SDL library. (includes
SDL-announce)’"

Sent: Saturday, August 25, 2007 12:10 PM
Subject: Re: [SDL] What happened to my stdout.txt & stderr.txt ? (SDL
1.2.12)

What compiler/platform are you using? I have seen that Visual Studio
will
output these files into the folder that contains your .sln file and not
the
directory your .exe is running from. Not sure if that is your problem,
but
I thought I would pass on the info.

Ken Rogoway
Homebrew Software
http://www.homebrewsoftware.com/

-----Original Message-----
From: sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org]
On
Behalf Of David Olsen
Sent: Saturday, August 25, 2007 10:35 AM
To: A list for developers using the SDL library. (includes SDL-announce)
Subject: [SDL] What happened to my stdout.txt & stderr.txt ? (SDL 1.2.12
)

Hello folks,
I’m hoping someone can point out to me a simple explanation/solution for
the
problem I’m having. Here’s the deal: I recently noticed that my game
project
no longer outputs to stdout.txt(I’ve been throwing several diagnostic
statements at it), and that there is no stderr.txt, either. (Neither of
these files is created upon running the executable). I also recently
upgraded to SDL 1.2.12 - and the two are related - here’s how I know:

I have an older backup of my program project, compiled with SDL 1.2.11,
which does output the stdout.txt, and when I re-compile it with the
SDL
1.2.12 libs, it no longer outputs to stdout.txt, even when run with the
1.2.11 .dll (or the 1.2.12).

Is there something simple I’m missing? Am I supposed to manually
redirect
the stdout stream now? Thanks in advance for any help!
-Dave


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.484 / Virus Database: 269.12.6/971 - Release Date:
8/24/2007
2:59 PM

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.484 / Virus Database: 269.12.6/971 - Release Date:
8/24/2007
2:59 PM


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


!!!

Hello folks,
I’m hoping someone can point out to me a simple explanation/solution for the
problem I’m having. Here’s the deal: I recently noticed that my game project
no longer outputs to stdout.txt(I’ve been throwing several diagnostic
statements at it), and that there is no stderr.txt, either. (Neither of
these files is created upon running the executable). I also recently
upgraded to SDL 1.2.12 - and the two are related

Yep, in the release binaries for Win32, I used the "no stdio redirection"
configuration, since that’s what is appropriate for shipping titles. You
can easily build the SDLmain project yourself to get redirection again.

See ya!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment

Oh, cool. Just so long as it’s expected behavior. It’s easy enough to
redirect any stdout stuff myself… I had just spent an evening looking for
some obscure programming bug that I’d introduced which did away with it, but
now I’ll rest easy…
Thanks, Sam! SDL rocks!
-Dave> ----- Original Message -----

From: slouken@devolution.com (Sam Lantinga)
To: "A list for developers using the SDL library. (includes SDL-announce)"

Sent: Tuesday, August 28, 2007 2:46 PM
Subject: Re: [SDL] What happened to my stdout.txt & stderr.txt ? (SDL
1.2.12)

Hello folks,
I’m hoping someone can point out to me a simple explanation/solution for
the
problem I’m having. Here’s the deal: I recently noticed that my game
project
no longer outputs to stdout.txt(I’ve been throwing several diagnostic
statements at it), and that there is no stderr.txt, either. (Neither of
these files is created upon running the executable). I also recently
upgraded to SDL 1.2.12 - and the two are related

Yep, in the release binaries for Win32, I used the "no stdio redirection"
configuration, since that’s what is appropriate for shipping titles. You
can easily build the SDLmain project yourself to get redirection again.

See ya!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org