On 12-Apr-2000 Kayvan A. Sylvan wrote:
> g++ -DHAVE_CONFIG_H -I. -I. -I. -I../images  -I/usr/X11R6/include  -g -ansi -W -Wall
> -Wno-return-type -c lyxfunc.C
> lyxfunc.C: In method `class string LyXFunc::Dispatch(int, const char * = 0)':
> lyxfunc.C:1960: `istringstream' undeclared (first use this function)
> lyxfunc.C:1960: (Each undeclared identifier is reported only once
> lyxfunc.C:1960: for each function it appears in.)
> lyxfunc.C:1960: parse error before `('
> lyxfunc.C:1962: `istr' undeclared (first use this function)
> lyxfunc.C:1975: confused by earlier errors, bailing out

Put in this code at line 1961 in lyxfunc.C:

-               istringstream istr(argument);
+ #ifdef HAVE_SSTREAM
+                 istringstream istr(argument);
+ #else
+                 istrstream istr(argument.data());
+ #endif

This works here :)

   Jürgen

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Dr. Jürgen Vigna                      E-Mail: [EMAIL PROTECTED]
Italienallee 13/N                     Tel:    +39-0471-450260
I-39100 Bozen                         Fax:    +39-0471-450296
ITALY                                 Web:    http://www.sad.it/~jug

If you keep your mind sufficiently open, people will throw a lot of
rubbish into it.
                -- William Orton

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Reply via email to