But it still doesn't compile. I loos like it doesn't expand the backsticked part to the shell. Here the last Build Log:
-------------- Build: default in wxSmith_project ---------------
g++ `wx-config --cflags` -I.objs -I- -I.objs -I. -I/usr/include -c wx_pch.h -o .objs/wx_pch.h.gch
cc1plus: note: obsolete option -I- used, please use -iquote instead
wx_pch.h:9:23: error: wx/wxprec.h: No such file or directory
wx_pch.h:16:20: error: wx/wx.h: No such file or directory
Process terminated with status 1 (0 minutes, 1 seconds)
2 errors, 0 warnings
Ok, found your problem. Backticks are expanding correctly, wx-config is working correctly.
The problem is that the precompiled headers are being generated in the
object output dir (default). For that to work GCC needs some header paths. But it's more easy to change the precompiled headers strategy.
Just open the project in a text editor and add after
<Option title="wxSmith_project" />:
<Option title="wxSmith_project" />
<Option pch_mode="0" />
Or the GUI way: go to menu
Project->Properties and in
Precompiled headers, change the strategy to
Generate PCH in a directory alongside original header.
Generate PCH alongside original header should work too.
Another thing: the warning that appears there
cc1plus: note: obsolete option -I- used, please use -iquote instead is being generated by GCC4, which now use
-iquote instead of
-I-.