|
Boost Users : |
From: 7stud (bbxx789_05ss_at_[hidden])
Date: 2008-04-23 01:52:43
Daniel James <daniel_james <at> fmail.co.uk> writes:
>
> On 21/04/2008, 7stud <bbxx789_05ss <at> yahoo.com> wrote:
> >
> > Are you using Xcode? I can't find a setting in Xcode for the compiler.
> > When I create a new project, I choose Command Line Utility>C++ Tool.
> > Then Xcode creates the project for me. I don't know what I should do
> > to run the boost program in Xcode.
>
> I don't normally use Xcode, but I had a quick look. If you start a C++
> project, choose 'edit project settings' from the project menu then
> select the 'build' tab there are options for 'Header Search Paths'
> which is probably what you need to set. I expect you need to add
> '/usr/local/boost_1_34_1' to 'Header Search Paths'.
>
>From one of my earlier posts:
---- And when I try running the program in the Xcode 2.4 IDE, I get different errors. I added the directory /usr/local/boost_1_34_1 to the Project Settings under: Project>Edit Project Settings Collection: Search Paths Header Search Paths /usr/local/boost_1_34_1/** And when I run the program, I get an error for the line: typedef std::istream_iterator<int> in; which says: error: expected initializer before token '<' token And I get an error for the line: std::for_each(in(std::cin), in(), std::cout << (_1 * 3) << " " ); which says: error: for_each is not a member of 'std' ----------
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