User forums > General (but related to Code::Blocks)

wxwidgets extra ';'

(1/1)

r.stiltskin:
I notice that when I create a new wxWidgets project, C::B puts a ';' after
--- Code: ---IMPLEMENT_APP(myWidgetsApp)
--- End code ---

None of the wxWidgets sample C++ programs have a semicolon terminating that line.  It doesn't seem to cause a problem when building a project in C::B, but when I build my project in a console I get an error, e.g.:
--- Quote ---wbanditApp.cc:17: error: extra ‘;’
make: *** [obj/wbanditApp.o] Error 1

--- End quote ---
which goes away if I delete that ';'.

Do you guys know anything about this?  Why does the C::B wxWidgets sample have that extra ';'?

Navigation

[0] Message Index

Go to full version