[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Newbie
From: |
Julie Russell |
Subject: |
Newbie |
Date: |
Wed, 08 Oct 2003 12:40:32 +1000 |
Hi Everyone,
I have just recently downloaded Common C++ 2 version 1.0.13. I am running
SuSE 8.2 in KDevelop.
I set up the cxxflags as: -I/usr/local/include/cc++2 -D_GNU_SOURCE
I set up the additional libraries
as: -L/usr/local/lib -lccgnu2 -ldl -pthread
I am trying to use the thread libraries and when I add the header
<cc++/thread.h> everything still compiles but when I extend Thread I get
compiler errors.
ie:
class Test : public Thread {
public:
Test();
void run();
};
The compiler says class test is a forward declaration, says it's invalid use
of class test and complains about the curly brackets. I assume it's an
initialisation thing, either my flags are wrong, or I am missing something
else.
Would appreciate any help you can give.
Regards,
Julie.
- Newbie,
Julie Russell <=
- Re: Newbie, Federico Montesino Pouzols, 2003/10/08