News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Nassi-Shneiderman global variable "boost" not enough to find includes [Solved]

Started by headkase, May 30, 2018, 03:51:04 PM

Previous topic - Next topic

headkase

I've built SVN 11414 with the Nassi-Shneiderman contributed plugin.

Of course it depends on boost so I've set that up too.  However, setting the global variable defined in the plugin project boost's base directory isn't enough for the plugin to find it's includes.  I have to put the boost base directory into the compiler search directories as well for the plugin to successfully compile.  Am I doing something wrong?

The project used is SVN 11414 64-bit with wx 3.1.1.  All compiled from source with MinGW-Builds 7.3.0 64-bit.

Thanks,
Bill.


stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

headkase

Quote from: stahta01 on May 30, 2018, 03:56:58 PM
No, that is what I do.

Manually setting an include path doesn't seem like it's the right thing.  Would it be better to modify that plugin's project so the extra include is unnecessary?

Miguel Gimenez

There is no need to modify search directories, just set also the include and lib fields. Your locations may be different.

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.

Okay, thanks.  I've done that and now I'll go rebuild just to make sure that it works on my end.

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.

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) ;)

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)

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


Miguel Gimenez


sodev

Yes i know, i just wanted to clarify my previous post, i had the impression it got misunderstood.

headkase

Quote from: sodev on May 31, 2018, 03:41:10 PM
Yes i know, i just wanted to clarify my previous post, i had the impression it got misunderstood.

It did get misunderstood, updating notes again.  ;) Thanks.