Code::Blocks Forums
User forums => Help => Topic started by: yk1225 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?
-
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)
-
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!
-
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.
-
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! ;)