Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > The right way to include Boost library.

Reply
Thread Tools

The right way to include Boost library.

 
 
kundasang@gmail.com
Guest
Posts: n/a
 
      12-07-2007
Hi.

I just downloaded boost library from boost.org then build and I don't
know what does binary precompiled means.

Well, I have installed it and I using bloodshed Dev-Cpp compiler.

<b> Then, I opened the boost_1_34_1 folder and then I copy the boost.
</b>

<b>The boost library I paste it at C:\Dev-Cpp\include\boost</b>

Then I try some of code that required coding and then it just works!
example:
#include <boost/numeric/ublas/vector.hpp>
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/io.hpp>

using namespace boost::numeric::ublas;

/* "y = Ax" example */
int main ()
{
vector<double> x (2);
x(0) = 1; x(1) = 2;

matrix<double> A(2,2);
A(0,0) = 0; A(0,1) = 1;
A(1,0) = 2; A(1,1) = 3;

vector<double> y = prod(A, x);

std::cout << y << std::endl;
system("PAUSE");
return 0;
}


well, my question is, is what am I doing is right?
or is there any better solution?
and I don't really know the gcc+ %% .. -- // o- l- thing lol ^_^

I use windows home, bloodshed devcpp.
 
Reply With Quote
 
 
 
 
Victor Bazarov
Guest
Posts: n/a
 
      12-07-2007
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> I just downloaded boost library from boost.org then build and I don't
> know what does binary precompiled means.
>
> Well, I have installed it and [..]
>
> well, my question is, is what am I doing is right?
> or is there any better solution?
> and I don't really know the gcc+ %% .. -- // o- l- thing lol ^_^
>
> I use windows home, bloodshed devcpp.


Did you not know that Boost has its own online discussion forums?
Installation of products (however closely related to C++) is OT here.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/* #include <someyhing.h> */ => include it or do not include it?That is the question .... Andreas Bogenberger C Programming 3 02-22-2008 10:53 AM
#include <boost/shared_ptr.hpp> or #include "boost/shared_ptr.hpp"? Colin Caughie C++ 1 08-29-2006 02:19 PM
Problems mixing boost::lambda::bind and boost::shared_ptr.. Toby Bradshaw C++ 6 06-02-2006 04:12 PM
Any Boost Experts out there for Boost.Regex? Richard Latter C++ 2 05-17-2004 03:12 PM
Boost + Python C/API: Mixing python return types with boost return types Steve Knight Python 2 10-10-2003 10:11 AM



Advertisments