It makes sense that the wiki example doesn't work on Linux.
That article was written long before Biplab wrote us such an excellent wizard to do most of the drudge setup work.
Linux needs the `wx-config --cflags` provided by the wizard in the compile defines. This directive tells the compiler where to find your wxWidgets headers.
In the linker, there's another directive `wx-config --libs` that tells the linker where the wxWidgets libraries are.
At a console prompt, type in those directives and you'll see how much information they provided to the compiler and linker. If it wasn't for the Wizard and those directives, you'd have to provide all that info youself.
To see how they work on the command line turn on full compile logging.
//-- Full Compile Logging --
"Settings" -> "Compiler and Debugger"
"Global Compiler Setting"
"Other Settings"
"compiler logging:" set to "Full Command Line"
Windows does not need these. Use the wizard. That's what it's there for.
Cut and paste the wiki examples into the wizard code if you want.