Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8523931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:32:57+00:00 2026-06-11T07:32:57+00:00

I just finished installing Boost on OSX Mountain Lion, and I got this dialog…

  • 0

I just finished installing Boost on OSX Mountain Lion, and I got this dialog…

The following directory should be added to compiler include paths:

/usr/local/boost_1_51_0

The following directory should be added to linker library paths:

/usr/local/boost_1_51_0/stage/lib

The Boost “Getting Started” page suggest this program:

#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) << " " );
}

Compiled with this script:

c++ -I /usr/local/boost_1_51_0 example.cpp -o example

Is there a way to add this include path in Linux/UNIX for Mac, so I don’t have to always type the path when I’m compiling?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T07:32:59+00:00Added an answer on June 11, 2026 at 7:32 am

    Short answer: Yes.

    Long answer: You shouldn’t do it.

    Reason: If you add specific compiler flags to be used at all times, no matter what you are compiling, you will end up with situations where the wrong thing is included or linked against.

    It is always a good thing to explicitly state the flags to be used in a makefile or on the command line and there are tools like pkg-config that can make this less troublesome and error prone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just finished looking at this question: https://stackoverflow.com/questions/753122/which-cloud-computing-platform-should-i-choose But, I am not certain what
I just got eclipse to work and finished installing All the development tools for
I've just finished re-installing my OS, and as always install and test standard tools
Just finished reading this blog post: http://www.skorks.com/2010/03/an-interview-question-that-prints-out-its-own-source-code-in-ruby/ In it, the author argues the case
Just finished reading Jon Skeet's article about events and delegates and got a question.
I just finished this script it works well, but I am struggling to pass
I just finished writing this script and getting it to work but I need
I am a newbie to the Zend Framework. I just finished installing Zend Server
Just finished installing libevent(1.4.8), memcached(1.4.5), pear, and libmemcached(0.40) to my lamp server (running PHP
I've just finished installing Hadoop 0.20.2 under Cygwin on Windows 7 with Eclipse Helios

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.