On Mon, Dec 16, 2002 at 07:07:57PM +0100, Alexandre CONRAD wrote: > Hi, > > I've just got the lastest CVS. Everything goes well exept for the > apps/tuxzap : > > c++ -DHAVE_CONFIG_H -I. -I. -I.. -DPTHREADS -I/usr/include/gtk-1.2 > -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include > -I.. -I/usr/local/include -I../../../libdvb -I../../../libdvb/include > -I../../../libdvb/src -I../../../driver -I../include > -I../../../include -g -O2 -c tuxplayer.cc > tuxplayer.cc: In function `void fpr (int)': > tuxplayer.cc:99: `ostrstream' undeclared (first use this function) > tuxplayer.cc:99: (Each undeclared identifier is reported only once for > each function it appears in.) > tuxplayer.cc:99: parse error before `(' > tuxplayer.cc:103: `str' undeclared (first use this function) > tuxplayer.cc: In function `void sfile_ok_sel (GtkWidget *, > GtkFileSelection *)': > tuxplayer.cc:357: parse error before `(' > tuxplayer.cc: In function `void pfile_ok_sel (GtkWidget *, > GtkFileSelection *)': > tuxplayer.cc:377: parse error before `(' > make[2]: *** [tuxplayer.o] Error 1 > make[2]: Leaving directory `/usr/local/src/DVB/apps/tuxzap/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/usr/local/src/DVB/apps/tuxzap' > make: *** [all-recursive-am] Error 2 > > Any ideas ? Sure. The code is buggy. ;-) The following does fix it. Index: apps/tuxzap/src/tuxplayer.cc =================================================================== RCS file: /cvs/linuxtv/DVB/apps/tuxzap/src/tuxplayer.cc,v retrieving revision 1.12 diff -u -r1.12 tuxplayer.cc --- apps/tuxzap/src/tuxplayer.cc 11 Oct 2002 10:52:27 -0000 1.12 +++ apps/tuxzap/src/tuxplayer.cc 16 Dec 2002 20:19:59 -0000 @@ -27,7 +27,7 @@ #include <fcntl.h> #include <locale.h> #include <cdk/cdk.h> - +#include <strstream> #include "tuxplayer_xpm.h" #include "common.hh" @@ -96,7 +96,7 @@ static void fpr(int what) { char buf[80]; - ostrstream str(buf, 80); + std::ostrstream str(buf, 80); switch (what) { case PLAY: @@ -354,7 +354,7 @@ { gchar *name; char buf[80]; - ostrstream str(buf, 80); + std::ostrstream str(buf, 80); name = gtk_file_selection_get_filename(fs); if (name) { @@ -374,7 +374,7 @@ { gchar *name; char buf[80]; - ostrstream str(buf, 80); + std::ostrstream str(buf, 80); name = gtk_file_selection_get_filename(fs); if (name) { Robert -- Robert Schiele Tel.: +49-621-181-2517 Dipl.-Wirtsch.informatiker mailto:rschiele@uni-mannheim.de
Attachment:
pgp00003.pgp
Description: PGP signature