To use wxWidgets you have to supply the proper compiler and linker options. Because it is not so simple to just add the include directory and add one library you can use the wx-config script to get the required settings. You seem to have added some settings by yourself, remove these first.
Then go to the project settings and add under "Other compiler options"
and under "Other linker options"
If you did build wxWidgets not as monolithic library but as individual libraries you can further restrict to link only to the libraries you actually use, but for this you need to check the wxWidgets documentation which ones you are actually using, a minimal GUI application at least requires this:
`wx-config --libs core,base`