<font color="#000000"><font face="arial,helvetica,sans-serif">is /opt/local/include in your global path as well?<br>it could be that g++ runs under your user and takes the global PATH and not the one from TextMate<br><br clear="all">

</font></font>Best regards / Med vennlig hilsen<div>Thor Erik<br></div><a href="http://thorerik.net/" target="_blank">http://thorerik.net</a><br>
<br>
<br><br><div class="gmail_quote">2011/10/16 Andre de Boer <span dir="ltr"><<a href="mailto:aajd@xs4all.nl">aajd@xs4all.nl</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div style="word-wrap:break-word"><div>Hello Thor,</div><div><br></div><div>I added /opt/local/include in TextMate's path:</div>/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<div>

<br></div><div>Boost is in /opt/local/include:</div><div><br></div><div><div>MacBook-Pro-van-Andre-de-Boer:include aajd$ pwd</div><div>/opt/local/include</div></div><div><div>MacBook-Pro-van-Andre-de-Boer:include aajd$ ls boost</div>

<div>accumulators<span style="white-space:pre-wrap">                      </span>date_time.hpp<span style="white-space:pre-wrap">                   </span>intrusive_ptr.hpp<span style="white-space:pre-wrap">               </span>....</div><div><br></div></div><div>But I still get this message:</div>

<div><span style="color:rgb(255, 0, 0);font-family:LuxiMono, 'Bitstream Vera Sans Mono', Monaco, 'Courier New', monospace;font-size:12px">/Users/aajd/Desktop/Rspace/test.cpp:1:35: error: boost/lambda/lambda.hpp: No such file or directory</span></div>

<div><div><div><br></div><div>Thanks for the help,</div><div>Andre</div><div><div></div><div class="h5"><div><br></div><div><br></div><div>On 15 okt. 2011, at 20:27, Thor Erik Lie wrote:</div><br><blockquote type="cite">
Just make sure it's in Textmate's path (configured in the preferences), then it should work like a charm :)<div>
<br></div><div>Best regards</div><div>Thor<br><br>lørdag 15. oktober 2011 skrev Andre de Boer  følgende:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
How can I include the boost library in a c++ program with TextMate?<br>
So I can run programs like using TextMate.<br>
<br>
#include <boost/lambda/lambda.hpp><br>
#include <iostream><br>
#include <iterator><br>
#include <algorithm><br>
<br>
int main()<br>
{<br>
    using namespace boost::lambda;<br>
    typedef std::istream_iterator<int> in;<br>
<br>
    std::for_each(<br>
        in(std::cin), in(), std::cout << (_1 * 3) << " " );<br>
}<br>
<br>
<br>
Thanks for the reaction,<br>
Andre<br>
<br>
_______________________________________________<br>
textmate mailing list<br>
<a>textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br>
</blockquote></div><br><br>-- <br>Best regards / Med vennlig hilsen<div>Thor Erik Lie</div><a href="tel:%2B47%20976%2020%20928" value="+4797620928" target="_blank">+47 976 20 928</a><br><a href="http://thorerik.net/" target="_blank">http://thorerik.net</a><br>


<br>
<br>_______________________________________________<br>textmate mailing list<br><a href="mailto:textmate@lists.macromates.com" target="_blank">textmate@lists.macromates.com</a><br><a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a></blockquote>

</div></div></div><br></div></div><br><br>
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br></blockquote></div><br>