[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Newbie
From: |
Federico Montesino Pouzols |
Subject: |
Re: Newbie |
Date: |
Wed, 8 Oct 2003 09:24:28 +0200 |
User-agent: |
Mutt/1.3.28i |
You should use the flags provided by the script
ccgnu2-config. See the section 'Compiler Options' in the
documentation, or searh the archives of this list if you need more
info.
On Wed, Oct 08, 2003 at 12:40:32PM +1000, Julie Russell wrote:
> 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.
>
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp
- Newbie, Julie Russell, 2003/10/07
- Re: Newbie,
Federico Montesino Pouzols <=