[mythtv] Problem compiling CVS - patch

Matthew Burnham mythtv-dev@snowman.net
Sun Jan 5 16:56:43 EST 2003


I got an error compiling cvs:

g++ -c -pipe -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wall
-W -O6 -march=pentiumpro -fomit-frame-pointer -funroll-loops
-fexpensive-optimizations -finline-functions -D_REENTRANT -fPIC 
-D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DEXTRA_LOCKING -DMMX
-DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/local/include
-I/usr/share/qt/include -I/usr/share/qt/mkspecs/linux-g++ -o dialogbox.o
dialogbox.cpp
In file included from dialogbox.cpp:9:
mythcontext.h:64: parse error before `&'
make: *** [dialogbox.o] Error 1

which I think is due to a missing #include <qsqldatabase.h>, fixed by
this diff:

Index: mythcontext.h
===================================================================
RCS file: /var/lib/cvs/MC/libs/libmyth/mythcontext.h,v
retrieving revision 1.26
diff -u -r1.26 mythcontext.h
--- mythcontext.h	5 Jan 2003 06:36:53 -0000	1.26
+++ mythcontext.h	5 Jan 2003 16:57:02 -0000
@@ -8,6 +8,7 @@
 #include <qobject.h>
 #include <qptrlist.h>
 #include <qevent.h>
+#include <qsqldatabase.h>
 
 #include <vector>
 using namespace std;





More information about the mythtv-dev mailing list