compile error please help more help
Doug Stewart
dastew at sympatico.ca
Sun Dec 14 08:44:56 CST 2008
Carlo de Falco wrote:
>
> On 14/dic/08, at 13:26, Doug Stewart wrote:
>
>> here it is
>>
>> doug at ubuntu32:~$ gnuplot --version
>> gnuplot 4.2 patchlevel 2
>> doug at ubuntu32:~$
>>
>>
>> interesting !!!!
>> doug
>
>
>
> I think it could be a problem with your PCRE installation.
> The relevant code in __gnuplot_version__ is
>
> ------------------------------------------------------
> output = "gnuplot 4.2 patchlevel 2";
> pattern = "^[^\\s]*\\s*([0-9]+\\.[0-9]+)\\s*[^\\s]*\\s*([^\\s]*)";
> [d1, d2, d3, d4, matches] = regexp (output, pattern);
> if (iscell (matches) && numel (matches) > 0 && iscellstr (matches{1}))
from some other emails I have an Idea:
should we have some more brackets in this line?
if (iscell (matches) && numel (matches) > 0 && iscellstr (matches{1}))
like
if ( ( (iscell (matches) && numel (matches)) > 0 ) && iscellstr
(matches{1}))
I will try it now and see (it will be 2-3 hours to see the result)
> if (numel (matches{1}) == 2)
> __version__ = sprintf ("%s.%s", matches{1}{:});
> else
> __version__ = matches{1}{1};
> endif
> endif
> --------------------------------------------------------
>
> which for me gives:
>
> ------------------------------------------------------
> > matches
> matches =
>
> {
> [1,1] =
>
> {
> [1,1] = 4.2
> [1,2] = 2
> }
>
> }
>
> >> __version__
> __version__ = 4.2.2
> ------------------------------------------------------
>
> what does it return on your system?
> c.
>
>
>
>
>
>
More information about the Help-octave
mailing list