Author Topic: wxSmith wxListCtrl trouble or bug?  (Read 5128 times)

Offline XTR

  • Single posting newcomer
  • *
  • Posts: 3
wxSmith wxListCtrl trouble or bug?
« 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!

« Last Edit: August 20, 2008, 08:05:49 am by XTR »

Offline XTR

  • Single posting newcomer
  • *
  • Posts: 3
Re: wxSmith wxListCtrl trouble or bug?
« Reply #1 on: August 20, 2008, 08:10:41 am »
could anybody confirm problem?

Offline frithjofh

  • Regular
  • ***
  • Posts: 376
Re: wxSmith wxListCtrl trouble or bug?
« Reply #2 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
architect with some spare time  -  c::b compiled from last svn  -   openSuSE leap x86_64  -  AMD FX-4100

Offline XTR

  • Single posting newcomer
  • *
  • Posts: 3
Re: wxSmith wxListCtrl trouble or bug?
« Reply #3 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 ;)

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: wxSmith wxListCtrl trouble or bug?
« Reply #4 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