This seems to fix the problem:
In file /usr/share/codeblocks/templates/wizard/wxwidgets/wizard.script
846,847c846,847
< project.AddCompilerOption(_T("`wx-config --cflags`"));
< project.AddLinkerOption(_T("`wx-config --libs`"));
---
> target.AddCompilerOption(_T("`wx-config --cflags`"));
> target.AddLinkerOption(_T("`wx-config --libs`"));
Just edit the script and change 'project' to 'target'.
Germán
There is a Ubuntu 7.04 i386 build here: http://www.savefile.com/files/707996
Also, there seems to be a bug with creating wxSmith projects. When I click file -> new -> project -> wxWidgets project -> Next -> Next -> Next -> Next -> Next -> Finish I get the following error (I selected wxWidgets2.8.x, wxSmith, Frame Based, Default wxWidgets Configuration and am using GCC):
SquirrelFunction<> call failed
AN ERROR HAS OCCURED [the index 'project' does not exist]
CALLSTACK
*FUNCTION [SetupTarget()] /usr/share/codeblocks/templates/wizard/wxwidgets/wizard.script line [846]
*FUNCTION [SetupProject()] /usr/share/codeblocks/templates/wizard/wxwidgets/wizard.script line [570]
LOCALS
[exe_output_dir] INSTANCE
[exe_file_name] INSTANCE
[obj_output_dir] INSTANCE
[is_debug] true
[target] INSTANCE
[this] TABLE
[target] INSTANCE
[libdir] NULL
[project] INSTANCE
[this] TABLE
Thanks