|
From: Bastian M. <bma...@we...> - 2014-03-19 23:44:00
|
Am 18.03.2014 22:22, schrieb Tatsuro MATSUOKA:
> Hello
>
> I have build current cvs (2014-03-18) and carried out the test of all.
> Tha all.dem stop at:
> ********************** file stringvar.dem *********************
> Hit return to continue
>
> foo = sprintf("%40d %40d %40d %40d %40d %40d",1,2,3,4,5,6)
> ^
> "stringvar.dem", line 62: undefined value
FWIW I cannot reproduce this here using MinGW 4.8.1. I am using
config/mingw/Makefile to build. How do you build gnuplot?
I can reproduce the problem with VS2012, though. The reason is that the
stupid _snprintf() (note the underscore) apparently sets errno if the
buffer size is insufficient. This then triggers the above message. I'll
prepare a fix for MSVC.
Could you try building with "-D__USE_MINGW_ANSI_STDIO"? That should
should ensure that MinGW is using an ANSI compliant replacement of the
snprintf function.
Bastian
>
> I have built the same source on cygwin
> and "make check" has been successful.
>
> I have checked from gnuplot command line
>
> gnuplot> foo = sprintf("%40d %40d %40d %40d %40d %40d",1,2,3,4,5,6)
> ^
> undefined value
>
> Hmm
>
> What is wrong?
>
> Regards
>
> Tatsuro
>
|