Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: XTR on August 18, 2008, 10:26:52 am

Title: wxSmith wxListCtrl trouble or bug?
Post by: XTR on August 18, 2008, 10:26:52 am
Hi!

C::B 8.02,   wxWidgets-2.8.8,  mingw-3.4.5

Creating frame based app.  When adding wxListCtrl to main wxFrame all is good.
But then put wxListCtrl to additional wxFrame - have compiler errors:

ISO C++ forbids declaration of `wxListCtrl' with no type
expected `;' before '*' token


in XRC-mode the same problem...
what is wrong? how to fix?
thanx!

Title: Re: wxSmith wxListCtrl trouble or bug?
Post by: XTR on August 20, 2008, 08:10:41 am
could anybody confirm problem?
Title: Re: wxSmith wxListCtrl trouble or bug?
Post by: frithjofh on August 20, 2008, 04:33:51 pm
Hi,

I'm no expert in all this, but to me it looks like you will have to make wxListCtlr known to the compiler and linker first. Usually you use a forward declaration of the type class wxListCtrl; or you put in the appropriate header with an #include directive. Also check if before the line which gives you the error there are all the ; correctly set ...

Regards

nausea
Title: Re: wxSmith wxListCtrl trouble or bug?
Post by: XTR on August 20, 2008, 05:29:47 pm
Hi, nausea

There is no my code.
It is just all C::B and wxSmith are generated.
I explained(?) how to replay it.


uh...  c++(especially gcc) tired me again...
going to learn Python ;)
Title: Re: wxSmith wxListCtrl trouble or bug?
Post by: byo on September 03, 2008, 10:18:50 pm
That's probably some bug in wxSmith. I'll try to fix that soon.
Thanx for reporting.

Regards
    BYO