User forums > General (but related to Code::Blocks)
Nassi-Shneiderman global variable "boost" not enough to find includes [Solved]
headkase:
--- Quote from: Miguel Gimenez on May 30, 2018, 04:25:28 pm ---There is no need to modify search directories, just set also the include and lib fields. Your locations may be different.
--- End quote ---
Yes, you're right. I've updated my notes and the information will eventually be in the wiki.
sodev:
If you don't set the include part of the global variable it defaults to "include", which in this case is wrong because the include path needs to be the base directory. Same applies to lib (and maybe the other standard ones as well) ;)
An imho better approach to set the include part is to reference the global variable itself so u have to set the path only once, in this case $(#boost)
headkase:
--- Quote from: sodev on May 30, 2018, 08:23:59 pm ---If you don't set the include part of the global variable it defaults to "include", which in this case is wrong because the include path needs to be the base directory. Same applies to lib (and maybe the other standard ones as well) ;)
--- End quote ---
This makes sense and once you point it out it is a logical behaviour.
--- Quote from: sodev on May 30, 2018, 08:23:59 pm ---An imho better approach to set the include part is to reference the global variable itself so u have to set the path only once, in this case $(#boost)
--- End quote ---
If that can be done in the plugin project settings it would simplify the global variable but might be less clear what behaviour you're getting out of it given what you previously said.
Thanks.
sodev:
Maybe this picture explains better what i mean :)
Miguel Gimenez:
Sodev, you can already do that
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version