Boost logo

Boost Users :

Subject: Re: [Boost-users] can't build an official example on eclipse
From: Nick Wiggill (nick.wiggill_at_[hidden])
Date: 2009-12-12 20:51:31

I'm using Eclipse/CDT with GCC under Windows.

You DO NOT need to specify any command-line switches/options. I
you first remove them all. Once you've done that, go into Project
C/C++ Build->Settings->GCC C++ Compiler->Directories and set your
include directory to whatever the ROOT of your boost folder is, so in
my case
this is D:\libs\boost_1_41_0. DO NOT add \boost onto the end of that

I believe the precompiled libs (/lib) are optional, because I can
compile fine
without them. So don't worry about that for now, first get the
includes working.

"Most Boost libraries are header-only: they consist entirely of header
containing templates and inline functions, and require no separately-
library binaries or special treatment when linking."

When you've done the above , I suggest you make an extremely simple
class which only tries to include a single boost class and see if you
can get
that to include boost, and build correctly. Then take it from there.

On Dec 12, 11:58 pm, Vladimir Prus <vladi..._at_[hidden]> wrote:
> loveley wrote:
> > I succeeded in adding boost to eclipse : I used the -l and -L functions
> > and  for -L  I added the directory  <boost_home>/bin.V2/libs/test and
> > some sub-directories to eclipse.
> This is wrong. You should add <boost_home>/stage/lib
> - Volodya
> _______________________________________________
> Boost-users mailing list
> Boost-us..._at_[hidden]

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at