|
From: Benjamin L. <lin...@gm...> - 2009-09-23 15:50:09
|
> Hello > > I have posted a thread about a problem on console mode gnuplot for windows > with wxt. > I am using GCC-4.4.0/Mingw. > > The gnuplot.exe (ver 4.3 ) with does not start. > > $ gnuplot > > Tatsu@INSPIRON6000 /c/Program Files/Gnuplot4.3wxt > $ > > Without wxt > $ gnuplot > > > G N U P L O T > Version 4.3 patchlevel 0 > last modified August 2009 > System: MS-Windows 32 bit > > : > : > > However, > $ gnuplot -e "plot sin(x); pause 1" > and > $ echo 'plot sin(x) ; pause 1' | gnuplot > > works even on gnuplot with wxt. > > I have struggled with gdb and found that > > (!isatty(fileno(stdin))) is false for the gnuplot without the wxt but true > for one without wxt. > I also found taht stdin, stdout, and stderr does not work. > > In short, gnuplot with wxt built on gcc/mingw does not have standard i/o. > > Perhaps this may be a side effect with gnuplot linked with wxWedgets. > > Michael Goffioul had built the console mode of gnuplot for windows with > wxt by MSVC++. > > This problem may be specific to the combination of GCC/mingw and wxt. > > Does anyone have ideas on this issue ? > The wxt link flags incorrectly include the setting "-mwindows", which causes gnuplot to be a gui-subsystem application, no longer a console-subsystem application. Thus stdin/stdout will not work. You have to modify the flags returned by wx-config. benjamin -- Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 - sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser |