Author Topic: Modification of Global variable for wxWigets  (Read 3659 times)

phkninja

  • Guest
Modification of Global variable for wxWigets
« on: April 17, 2006, 03:48:03 am »
I was wondering if it is possible to permanantly modify the location string for thewxWindows global Variable WXDIR.
Code::Blocks is currently configured to use C:\wxWidgets-2.6.2 for WXDIR, and im using wxWidgets-2.6.3. Do i have to change WXDIR every time i create a project or is it possible to change it so the template automatically use the directory i provide.

I searched for template and wxwigets and couldnt find the answer, so im hoping this isnt a question that was already answered.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: Modification of Global variable for wxWigets
« Reply #1 on: April 17, 2006, 09:36:42 am »
settings menu -> global variables

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Modification of Global variable for wxWigets
« Reply #2 on: April 17, 2006, 12:23:49 pm »
WXDIR is not a global variable (at least not the one officially used for wxWidgets). WXDIR is the project variable used in the RC2 templates. This can be set in the rightmost tab in project options.

The name of the global variable used to describe the path to wxWidgets is simply wx (or #wx in the compiler/linker path dialog). This can be changed according to Lieven's post.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."