For some unknown reason, wx-config is not found (perhaps only partially??) in my new project. I have compiled bags of wxWidgets projects successfully - and I have never got such error. The error is reported by the linker, so, perhaps, "wx-config --cxxflags" has been found (?)
(1) I have tried wx-config from the commandline. Yes, wx-config is here.
(2) I have checked thrice that linker options really contains `wx-config --libs --gl-libs`. Yes, that's true.
(3) I have tried to rewrite the linker options. No effect.
(4) I have tried to remove the linker (and compiler) "wx-config" option - and I got the "no such file or directory" error again. (I would expect undefined references and not found headers.)
(5) I have tried to compile another wxWidgets project. Okay!!
What can be wrong?
----------------------------------------
Inspecting the .cbp file, the problem has been identified. For some reason, it contained
Add option="wx-config `--libs --gl-libs`"
instead of
Add option="`wx-config --libs --gl-libs`"
but the linker options did not display "wx-config `--libs --gl-libs`". After patching the .cbp file, the project started compile and run.