Boost (& Visual Studio 2003) for Dummies?
Hey all, My need is to combine a program I've written with some linear algebra. I can generally do most basic tasks in C/C++, but not yet derived classes and the like. Anyway, not wanting to reinvent the wheel, my searches revealed that 'boost' might be a good source of code for some math functions I will need, essentially matrix operations. I read the getting started page http://boost.org/more/getting_started.html, all I managed to do was run the batch file in the tools/build folder, but I don't think this installed any libraries, or if it did, it didn't put them where I need them..I don't have much experience working from the command line in Windows. Boost looks good, can anyone help me get started? Thanks, Matt
There are only a few components of boost that actually have libraries. Boost.graph does have a library, but its only an I/O module for graphviz .dot files. Its called bgl-viz on my linux system. Its special purpose and you don't have any need for it unless you use graphviz. That said, I'd recommend you use it because its a great way to experiment with boost.graph. The deal is that graphviz offers neat tools for creating nicely layed out graphs. The logical place for you to begin experimenting with boost.graph is simply compile its examples in boost/libs/graph/example. Its all setup with bjam. The only time you need to deal with installing anything is when you use graphviz and then its only one file. Matthew Jankowski wrote:
Hey all,
My need is to combine a program I’ve written with some linear algebra. I can generally do most basic tasks in C/C++, but not yet derived classes and the like.
Anyway, not wanting to reinvent the wheel, my searches revealed that ‘boost’ might be a good source of code for some math functions I will need, essentially matrix operations.
I read the getting started page http://boost.org/more/getting_started.html, all I managed to do was run the batch file in the tools/build folder, but I don’t think this installed any libraries, or if it did, it didn’t put them where I need them….I don’t have much experience working from the command line in Windows…
Boost looks good, can anyone help me get started?
Thanks,
Matt
------------------------------------------------------------------------
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
That's not particularly accurate to my knowledge. You also need compiled libraries if you plan to use the boost filesystem or boost python libraries. Otherwise, you don't need to do much. Do this: Tools -> Options -> Projects -> VC++ Directories -> Include files there, add your boost_1_31_0 directory. You're done.... George Diamantopoulos Jeff Holle wrote:
There are only a few components of boost that actually have libraries.
Boost.graph does have a library, but its only an I/O module for graphviz .dot files. Its called bgl-viz on my linux system. Its special purpose and you don't have any need for it unless you use graphviz. That said, I'd recommend you use it because its a great way to experiment with boost.graph. The deal is that graphviz offers neat tools for creating nicely layed out graphs.
The logical place for you to begin experimenting with boost.graph is simply compile its examples in boost/libs/graph/example. Its all setup with bjam. The only time you need to deal with installing anything is when you use graphviz and then its only one file.
Matthew Jankowski wrote:
Hey all,
My need is to combine a program I’ve written with some linear algebra. I can generally do most basic tasks in C/C++, but not yet derived classes and the like.
Anyway, not wanting to reinvent the wheel, my searches revealed that ‘boost’ might be a good source of code for some math functions I will need, essentially matrix operations.
I read the getting started page http://boost.org/more/getting_started.html, all I managed to do was run the batch file in the tools/build folder, but I don’t think this installed any libraries, or if it did, it didn’t put them where I need them….I don’t have much experience working from the command line in Windows…
Boost looks good, can anyone help me get started?
Thanks,
Matt
------------------------------------------------------------------------
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Probably all you need is the uBlas Library (http://www.boost.org/libs/numeric/ublas/doc/index.htm). To start using it you don't need to compile any library. Just put the right header files in your source code and that's it! Hope this helps. Lorenzo. On Mon, Mar 01, 2004 at 03:21:03PM -0600, Matthew Jankowski wrote:
Hey all,
My need is to combine a program I've written with some linear algebra. I can generally do most basic tasks in C/C++, but not yet derived classes and the like.
Anyway, not wanting to reinvent the wheel, my searches revealed that 'boost' might be a good source of code for some math functions I will need, essentially matrix operations.
I read the getting started page http://boost.org/more/getting_started.html, all I managed to do was run the batch file in the tools/build folder, but I don't think this installed any libraries, or if it did, it didn't put them where I need them..I don't have much experience working from the command line in Windows.
Boost looks good, can anyone help me get started?
Thanks, Matt
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- CH3 | N / \ N----C C==O || || | || || | CH C N--CH3 \ / \ / N C | || CH3 O
"Lorenzo Bolla"
Probably all you need is the uBlas Library (http://www.boost.org/libs/numeric/ublas/doc/index.htm). To start using it you don't need to compile any library. Just put the right header files in your source code and that's it! Hope this helps. Lorenzo.
And be sure to add the path C:\...\boost_1_31_0 to VS2003 project properties
in the category:
Configuration Properties | C/C++ 'Additional Include Directories' property.
Then your includes will look like:
#include
participants (5)
-
George Diamantopoulos
-
Jeff Flinn
-
Jeff Holle
-
Lorenzo Bolla
-
Matthew Jankowski