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

Mine mine260309 at gmail.com
Tue Aug 28 02:26:39 PDT 2007


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 <jolynsbass at gmail.com> 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" <Ken at HomebrewSoftware.com>
> To: "'A list for developers using the SDL library. (includes
> SDL-announce)'"
> <sdl at lists.libsdl.org>
> 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
>



-- 
俺たちが乗った列車は途中下車はできないんだ!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070828/57f5ec44/attachment.htm>


More information about the SDL mailing list