On Tue, Feb 22, 2011 at 3:31 PM, ny <> wrote:
Hi, 

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,
export PATH=$PATH:/opt/local/var/macports/software/boost/1.45.0_1/opt/local/include
(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 Linkedin