Boost Users :
Subject: [Boost-users] failed linking boost w/ my code (mac os x snow leo, g++ 4.21)
From: ny (nikos.yiotis_at_[hidden])
Date: 2011-02-22 09:35:17
On Tue, Feb 22, 2011 at 3:31 PM, ny <> wrote:
> I'm a boost user, but right now I fail testing some code through Netbeans
> IDE (and yes I 've posted there as well).
> The inclusion w/ the foreach.hpp I need fails -> warning:
> boost/foreach.hpp: No such file or directory.
> I 've added #include <boost/foreach.hpp> in my code,
> (installed via macports) in my path but it fails.
> Note that linking by adding the
> -I /opt/local/var/macports/software/boost/1.45.0_1/opt/local/include
> directive from cmd line is possible.
> (and by the way I've been told that the path given above is an
> intermediate directory of macports, not the proper one...
> I am not sure about this, all other libs I use installed via macports work
> just fine with a single path inclusion).
> Back to the Netbeans issue, I 've added the Boost include path to Code
> Assistance >> C++
> and at least the unresolved symbols in the IDE disappeared
> I'm on mac os x snow leo, g++ 4.21.
> thanks for any pointers
> Nikos Yiotis
> Chat Skype: nyiotis
> Contact Me [image: Linkedin]<http://my.wisestamp.com/link?u=ws7c27w2vnrx4d2b&site=www.linkedin.com/in/yiotis>
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