[TxMt] Re: boost library

Andre de Boer aajd at xs4all.nl
Sat Oct 15 22:08:36 UTC 2011


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 at 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 at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20111016/0eaf76aa/attachment.html>


More information about the textmate mailing list