It's clear you missed something. "Undefined reference" errors come from the linker and indicate that you've failed to include an important library or object file. Make sure the correct wxWidgets libraries are being used, and make sure the linker can find them (i.e. your "undefined reference" messages aren't proceeded by a "can't find -lwxmsw" message).