Daniel James
On 21/04/2008, 7stud
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' ----------