News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Question about WxSmith tutorial_4 in Wiki

Started by yk1225, August 24, 2009, 04:30:29 PM

Previous topic - Next topic

yk1225

  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? 

oBFusCATed

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!]

yk1225

Quote from: oBFusCATed 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)


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!

oBFusCATed

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!]

yk1225

Quote from: oBFusCATed 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.

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