This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Using multiple base classes with g++


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]