The problem, as always, is mismatched settings. Make sure that your preprocessor #defines and linked libraries match the version of wxWidgets that you compiled -- i.e. WXUSINGDLL if you compiled DLLs, a single lib if you compiled the monolithic version or the appropriate core and base libs otherwise, etc. There are many good sources of documentation on the internet on getting everything set up properly.