If you 're going to use "evaluated commands" (sorry, don't know how they 're called exactly), like `wx-config` in the compiler's options, you must use the "GNU make" build method.
To do this, change "Settings->Compiler->Other->Build method".
Yiannis.