News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Nassi-Shneiderman plug-in and Boost.

Started by Cryogen, July 15, 2010, 03:15:18 AM

Previous topic - Next topic

Cryogen


I had problems with setting up Boost for this plug-in. Since a search here reveals no information and others may have the same issue, here are Killerbot's instructions, which worked perfectly.

The plug-in only needs boost headers, so no need to build boost.

1) windows
download boost zip, extract it, and have the CB global variable 'boost' point to it

2) linux
from your packet manager of your distro, install the boost headers/sources and that should be it



Done. :-)
DoxyBlocks: Now in contrib. Cool, baby.
DoxyDocs: [url="http://wxsmithaddons.sourceforge.net/docs/doxyblocks/"]http://wxsmithaddons.sourceforge.net/docs/doxyblocks/[/url]
wxSmith Add-ons: [url="http://wxsmithaddons.sourceforge.net/"]http://wxsmithaddons.sourceforge.net/[/url]
Cryo's Patchorama: [url="http://forums.next.codeblocks.org/index.php/topic,12619.0.html"]http://forums.next.codeblocks.org/index.php/topic,12619.0.html[/url]

ollydbg

Thanks.

Also, If I remember correctly(I built these plugins the day before yesterday), there are some build warnings in the new added plug-in. the pch header files were not used because some variables were not defined.

:D
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

metalous

Quote from: Cryogen on July 15, 2010, 03:15:18 AM

I had problems with setting up Boost for this plug-in. Since a search here reveals no information and others may have the same issue, here are Killerbot's instructions, which worked perfectly.

The plug-in only needs boost headers, so no need to build boost.

1) windows
download boost zip, extract it, and have the CB global variable 'boost' point to it

2) linux
from your packet manager of your distro, install the boost headers/sources and that should be it



Done. :-)

Hi,

I'm using Code::Blocks on Fedora Linux. I've installed boost, and everything is all right. But how can build a program under Code::Blocks using boost ?
Shall I add the Global Variables .. like under Windows ?

Thanks in advance.

(Ps: I'm trying to run a Wt program using Code::Blocks, Wt program require Cmake and boost C++, if you have any idea, please let me know).

Cheers.

killerbot

just like you would use any other library :

- specify path too include files (this can be done with CB global var, or just by specifying in the normal way)
- specify (path to) the libs to link with

The link part is not needed in case you just need the header based functionalities of boost (eg : variant, any, ...)

Biplab

IIRC this plugin doesn't throw any warning that it requires Boost when it is configured with automake. Later build fails if Boost is missing.

We should add appropriate check to configure script to ensure that necessary libraries are present.
Be a part of the solution, not a part of the problem.