[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Namespace hack causes trouble
From: |
Rik Hemsley |
Subject: |
Namespace hack causes trouble |
Date: |
Wed, 29 Aug 2001 23:14:31 +0100 |
Hi,
I'm currently evaluating CommonC++ for use in an audio processing
library.
If I declare a class like this:
#include <cc++/thread.h>
namespace A
{
namespace B
{
class Buffer : public Thread
{
...
}
}
};
Then I try to use it:
#include "mylib/Buffer.h"
A::B::Buffer buffer;
I get this:
test.cpp: In function `int main(int, char **)':
test.cpp:27: cannot declare variable `buffer' to be of type `A::B::cc_Buffer'
test.cpp:27: since the following virtual functions are abstract:
./mylib/Buffer.h:25: bool A::B::cc_Buffer::write(const A::B::DataBlock &)
I tried #include <cc++/namespace.h> after thread.h:
In file included from Buffer.cpp:8:
./mylib/Buffer.h:19: parse error before `{'
Damn.
Any ideas ?
Rik
- Namespace hack causes trouble,
Rik Hemsley <=