User forums > General (but related to Code::Blocks)

wxSmith wxListCtrl trouble or bug?

(1/1)

XTR:
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!

XTR:
could anybody confirm problem?

frithjofh:
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

XTR:
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 ;)

byo:
That's probably some bug in wxSmith. I'll try to fix that soon.
Thanx for reporting.

Regards
    BYO

Navigation

[0] Message Index

Go to full version