I believe random.hpp is a header only library, so you shouldn't need to link against anything for that.

On Wed, Apr 7, 2010 at 2:06 PM, <mh00219@surrey.ac.uk> wrote:

hello,
but now on the boost website it is option that you can either install boost libraries for windows or for unix-like operating systems i-e cygwin. But please tell me if i am using boost/random.hpp then where is the library of this header file so that I can link it on run time.
thank you for your concern.

________________________________________
From: boost-users-bounces@lists.boost.org [boost-users-bounces@lists.boost.org] On Behalf Of Sean McAllister [smcallis@gmail.com]
Sent: 07 April 2010 20:32
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] library linking

You may need to compile the boost libraries for your version of cygwin, as far as I know the binaries that come with the installer are for Visual Studio, and the binary interface between the two isn't compatible...

Sean

On Wed, Apr 7, 2010 at 12:23 PM, <mh00219@surrey.ac.uk<mailto:mh00219@surrey.ac.uk>> wrote:
hello,
I am a new student to C++ and using boost libraries in my project. I have a problem please solve it.
I am using boost header files in my programs. When I compile using g++ on cygwin by giving the path of boost root directory (c:\boost\boost_1_42_0) it is ok. But when I try to make .exe file from .o file then it gives me error. Please tell me how should I link boost libraries to my program? in which directory are these boost libraries.?
please reply must. my whole project is just a pice of writing nothing else.
thank you
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org<mailto:Boost-users@lists.boost.org>