Author Topic: Question about WxSmith tutorial_4 in Wiki  (Read 3974 times)

Offline yk1225

  • Single posting newcomer
  • *
  • Posts: 8
Question about WxSmith tutorial_4 in Wiki
« on: August 24, 2009, 04:30:29 pm »
  when i follow the steps about wxSmith_4 in  Wiki
(http://wiki.codeblocks.org/index.php?title=WxSmith_tutorial:_Working_with_multiple_resources#Adding_few_dialogs)

after finish all is said and compile the project , a error arise at
 line 116 :
Connect(wxID_ANY,wxEVT_CLOSE_WINDOW,(wxObjectEventFunction)&multiplewFrame::OnClose);

but if i put "//" before it ,compiler give me 0 error and 0 warning  , why?  how i comes? 

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13438
    • Travis build status
Re: Question about WxSmith tutorial_4 in Wiki
« Reply #1 on: August 24, 2009, 04:34:06 pm »
Please, post the error message emitted by the compiler.
I suppose it was not "there is some error at line 116.", but something more descriptive... :lol: :P 8)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline yk1225

  • Single posting newcomer
  • *
  • Posts: 8
Re: Question about WxSmith tutorial_4 in Wiki
« Reply #2 on: August 24, 2009, 04:49:39 pm »
Please, post the error message emitted by the compiler.
I suppose it was not "there is some error at line 116.", but something more descriptive... :lol: :P 8)


obj\Debug\multiplewMain.o||In function `_ZN14multiplewFrameC2EP8wxWindowi':|
E:\SHUJAI\multiplew\multiplewMain.cpp|116|undefined reference to `multiplewFrame::OnClose(wxCloseEvent&)'|
obj\Debug\multiplewMain.o||In function `_ZN14multiplewFrameC1EP8wxWindowi':|
E:\SHUJAI\multiplew\multiplewMain.cpp|116|undefined reference to `multiplewFrame::OnClose(wxCloseEvent&)'|
||=== Build finished: 2 errors, 0 warnings ===|


thank you so much you can answer my question! haha . ;) it has waste o lot of my time to deal with this problem!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13438
    • Travis build status
Re: Question about WxSmith tutorial_4 in Wiki
« Reply #3 on: August 25, 2009, 09:38:02 am »
The error say that you have no implementation of the OnClose method:
1. you have to write one
2. the file, it is in,  has not been compiled.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline yk1225

  • Single posting newcomer
  • *
  • Posts: 8
Re: Question about WxSmith tutorial_4 in Wiki
« Reply #4 on: August 25, 2009, 10:44:48 am »
The error say that you have no implementation of the OnClose method:
1. you have to write one
2. the file, it is in,  has not been compiled.

yes , it works,haha  thank you so much! ;)