Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Global variables error spamming, bug or feature request ?

(1/2) > >>

dje:
Hi all !

When I open my plugin project on a fresh Code::Blocks, I am asked 23 times (true, not a joke) for cb and wx variables.
Isn't it possible to ask simply once and remember I don't want to set them ?
I have neither wxWidgets nor Code::Blocks dev environment installed on this PC, I have nothing to set...

Thanks,

Dje

dmoore:
here I was thinking you just had to set them or you would be asked forever. if I'd known I only had to click 23 times I would have been more patient ;)

dje:
I fell asleep on escape key...
But forgive me, it appears only 22 times, better for 2 variables to set  :wink:

Dje

MortenMacFly:

--- Quote from: dje on August 10, 2007, 02:47:17 pm ---When I open my plugin project on a fresh Code::Blocks, [...]

--- End quote ---
I wonder if you really mean project or a *workspace* with several projects/targets that all use the global variables. We are aware of this issue but there is no easy solution currently. As a workaround:
- set the variables (;-))
- use global variables wisely (thus is you need them within a project for *all* targets, use it on project level only)
With regards, Morten.

thomas:

--- Quote from: dje on August 10, 2007, 02:47:17 pm ---When I open my plugin project [...]
I have neither wxWidgets nor Code::Blocks dev environment installed on this PC
--- End quote ---
In this case, you will not be compiling your plugin. :)
But seriously, for a Code::Blocks plugin, you need those.


--- Quote from: dmoore on August 10, 2007, 02:53:03 pm ---here I was thinking you just had to set them or you would be asked forever.
--- End quote ---
You will be asked forever. If you hit the build button, it will ask again.

See, the point is, if you use a global user variable then it must be defined. And Code::Blocks will not give up asking you for it, as it is otherwise impossible to run the build. The canonical use for global uservars is to define include and library paths in a system-independent way. If the variables aren't defined, the include/library paths are not defined, the build cannot work.

Navigation

[0] Message Index

[#] Next page

Go to full version