User forums > Help

Question about WxSmith tutorial_4 in Wiki

(1/1)

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)

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)

--- End quote ---


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.

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.

--- End quote ---

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

Navigation

[0] Message Index

Go to full version