This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Using multiple base classes with g++
- To: gcc-help at gcc dot gnu dot org
- Subject: Using multiple base classes with g++
- From: Sven Heinzel <heinzel at dvs dot de>
- Date: Thu, 15 Mar 2001 11:19:12 +0100
Hello,
I tried to build my own class from two base classes with the following
code:
class Control : public QObject, public QThread
{
...
but when I try to compile this, I get the error message:
control.h:57: parse error before `{'
Line 57 is the line with the '{' from the example above.
Is the syntax different for g++ or is it just not possible to use two
base classes?
Thanks in advance.
Sven