Autor Tema: Compiler output on screen  (Leído 2879 veces)

Sandman

  • Sr. Member
  • ****
  • Mensajes: 298
  • Karma: 48
Compiler output on screen
« en: Septiembre 09, 2007, 02:07:35 pm »
Currently the output of bgdc.exe goes to stdout.txt; this is not an operation one would expect. I see why it could be useful, but it's not handy for IDE's catching the screen output. So my suggestion is that there be at least a parameter switch telling bgdc.exe to output its info to the screen and not the stdout.txt. Ultimately I would like outputting to screen to be standard operation but I'll be happy with the switch.
-- Sandman

izubiaurre

  • Administrator
  • *****
  • Mensajes: 425
  • Karma: 23
    • ::IDE for BennuGD::
Re: Compiler output on screen
« Respuesta #1 en: Septiembre 09, 2007, 02:36:39 pm »
Currently the output of bgdc.exe goes to stdout.txt; this is not an operation one would expect.


Wop! Already exists a Bennu compiler version? I didn't heard anything about...


Citar
I see why it could be useful, but it's not handy for IDE's catching the screen output. So my suggestion is that there be at least a parameter switch telling bgdc.exe to output its info to the screen and not the stdout.txt. Ultimately I would like outputting to screen to be standard operation but I'll be happy with the switch.

If default output is screen (or command-line) I think it's easy to redirect to a file. For that you hace to type something like this:

bgdc.exe -> outputefile.txt

And the data that must go to screen will go to this file.

Sandman

  • Sr. Member
  • ****
  • Mensajes: 298
  • Karma: 48
Re: Compiler output on screen
« Respuesta #2 en: Septiembre 09, 2007, 03:37:50 pm »
Yes but that's not how it is done now; now it's going to stdout.txt and not the screen.

And what you meant is:
bgdc.exe >> outputfile.txt
-- Sandman

SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12548
  • Karma: 370
Re: Compiler output on screen
« Respuesta #3 en: Septiembre 09, 2007, 03:39:10 pm »
SDL catch the main proc and redirect stdout and stderr... only in windows... I can use a script for avoid it.

bgcd.bat
Código: [Seleccionar]
@echo off
c:\bennu\bin\bgdc.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
type c:\bennu\bin\stdout.txt
del c:\bennu\bin\stdout.txt

Download Lastest BennuGD Release: http://www.bennugd.org/node/2

Sandman

  • Sr. Member
  • ****
  • Mensajes: 298
  • Karma: 48
Re: Compiler output on screen
« Respuesta #4 en: Septiembre 09, 2007, 08:56:11 pm »
That would be cool, thanks. Originally Fenix did this as well (fxc.exe v0.84a for example), but it was later changed.
I know of the batch file, I've been using it and it is a working work around, but not a solution in my opinion.
-- Sandman

SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12548
  • Karma: 370
Re: Compiler output on screen
« Respuesta #5 en: Septiembre 09, 2007, 11:44:56 pm »
Sorry, SDL problem...
Download Lastest BennuGD Release: http://www.bennugd.org/node/2