Yes, it's probably a good idea to change the wx template to use ${#wx.*} before RC3 comes out. The same probably goes for the other library-using templates.
Does the current release of code::blocks cann't modify it?
if not,How to change the templates?
thanks a lot!!
First of all, there's no reason not to post this. That way others who have the same problem can see it as well, and don't have to ask the same question when it has already been answered.
To answer your question: yes, you can change the template on your computer. Sorry, my earlier post was directed more at the developers than at you :oops:.
How to do it:
(Note: templates are stored in
<CB_dir>\share\CodeBlocks\templates)
RC2 and before: Open the
.cbp file(s) belonging to the wx template and replace "C:\wxWidgets-2.6.2" by your wx directory.
SVN builds: Open those same files and replace
$(WX_DIR)\include by
${#wx.include},
$(WX_DIR)\lib by
${#wx.lib} and any
$(WX_DIR) remaining after that by
${#wx}. Remove the line
<Variable name="WX_DIR" value="C:\wxWidgets-2.6.2"/>.
The first time you create a project using such a template (or open any other project that uses the
${#wx} user variable, such as C::B's own
CodeBlocks-NewBuild.cbp), you should be asked where your wx directory is, and your answer will be remembered.
(This is also the fix I propose be put into SVN to be included in coming releases)
Finding which project file belongs to which template is pretty obvious by their names, but can also be found by opening the relevant
.template file in a text editor.