is /opt/local/include in your global path as well?
it could be that g++ runs under your user and takes the global PATH and not the one from TextMate

Best regards / Med vennlig hilsen
Thor Erik
http://thorerik.net



2011/10/16 Andre de Boer <aajd@xs4all.nl>
Hello Thor,

I added /opt/local/include in TextMate's path:
/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/2.6/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/texbin:/opt/local/include

Boost is in /opt/local/include:

MacBook-Pro-van-Andre-de-Boer:include aajd$ pwd
/opt/local/include
MacBook-Pro-van-Andre-de-Boer:include aajd$ ls boost
accumulators date_time.hpp intrusive_ptr.hpp ....

But I still get this message:
/Users/aajd/Desktop/Rspace/test.cpp:1:35: error: boost/lambda/lambda.hpp: No such file or directory

Thanks for the help,
Andre


On 15 okt. 2011, at 20:27, Thor Erik Lie wrote:

Just make sure it's in Textmate's path (configured in the preferences), then it should work like a charm :)

Best regards
Thor

lørdag 15. oktober 2011 skrev Andre de Boer følgende:
Hello,

How can I include the boost library in a c++ program with TextMate?
So I can run programs like using TextMate.

#include <boost/lambda/lambda.hpp>
#include <iostream>
#include <iterator>
#include <algorithm>

int main()
{
   using namespace boost::lambda;
   typedef std::istream_iterator<int> in;

   std::for_each(
       in(std::cin), in(), std::cout << (_1 * 3) << " " );
}


Thanks for the reaction,
Andre

_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate


--
Best regards / Med vennlig hilsen
Thor Erik Lie
+47 976 20 928
http://thorerik.net


_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate



_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate