Boost logo

Boost Users :

Subject: Re: [Boost-users] Fwd: Newbie: Eclipse and Boost
From: Maik Beckmann (beckmann.maik_at_[hidden])
Date: 2009-01-25 12:42:18


2009/1/25 n0b0dy-at-home <n0b0dy.home_at_[hidden]>:
> i'm about to make my first steps with boost... unfortunately
> eclipse says "boost/shared_ptr.hpp: No such file or directory";
>
> i've included the boost-path, so what's my mistake?

An Hello to nobody,

You must have added the wrong directory at the
  Preferences->C/C++ Build->Setting->Tool Settings
    ->C++ Compiler->Directories
dialog. I just downloaded eclipse and it works for me.

A tip: eclipse dumps out the command line it uses to compile, like:
{{{
Invoking: GCC C++ Compiler
g++ -I/home/maik/workspace/boost -O0 -g3 -Wall -c -fmessage-length=0
-MMD -MP -MF"src/test_boost.d" -MT"src/test_boost.d"
-o"src/test_boost.o" "../src/test_boost.cpp"
}}}
Include paths are headed by an "-I":
  -I/home/maik/workspace/boost
Check it!

HTH,
 -- Maik


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net