News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

wxSmith wxListCtrl trouble or bug?

Started by XTR, August 18, 2008, 10:26:52 AM

Previous topic - Next topic

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


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
architect with some spare time  -  c::b compiled from last svn  -   openSuSE leap x86_64  -  AMD FX-4100

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