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

  • Home
  • SEARCH
  • 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 7003189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:02:01+00:00 2026-05-27T21:02:01+00:00

xcode 4.2 os x 10.7 when i set my includes to look like: #include

  • 0
xcode 4.2
os x 10.7

when i set my includes to look like:

#include <iostream>
#include <boost/thread.hpp>

I get the following error from a file located at /opt/local/include/boost/tr1/tr1

Lexical or Preprocessor Issue
'boost/tr1/detail/config_all.hpp' file not found

Contents of the /opt/local/include/boost/tr1/tr1/iostream file:

//  (C) Copyright John Maddock 2005.
//  Use, modification and distribution are subject to the
//  Boost Software License, Version 1.0. (See accompanying file
//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
//  This file exists to prevent std lib headers from accidentally
//  including a TR1 extention header; we must suppress this otherwise
//  we can end up with cyclic dependencies with some std lib implementations.
//
#ifndef BOOST_TR1_iostream_INCLUDED
#  define BOOST_TR1_iostream_INCLUDED
#  ifndef BOOST_TR1_NO_RECURSION
#     define BOOST_TR1_NO_RECURSION
#     define BOOST_TR1_NO_iostream_RECURSION
#  endif
#  include <boost/tr1/detail/config_all.hpp>
#  if defined(BOOST_HAS_INCLUDE_NEXT) && !defined(BOOST_TR1_DISABLE_INCLUDE_NEXT)
#     include_next <iostream>
#  else
#     include BOOST_TR1_STD_HEADER(iostream)
#  endif
#  ifdef BOOST_TR1_NO_iostream_RECURSION
#     undef BOOST_TR1_NO_iostream_RECURSION
#     undef BOOST_TR1_NO_RECURSION
#  endif
#endif

I should be using the iostream header located at /Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/

You will have to forgive me as I am very new to c++ and even more new to xcode. Thank you in advance for any help.

  • 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-05-27T21:02:02+00:00Added an answer on May 27, 2026 at 9:02 pm

    Definitely turn off recursive searches. You should never be able to include a boost header without specifying the complete boost path. Much of Boost is sort of a training ground for features that will make their way into the standard eventually, and as such there are a great number of Boost headers that share the same name as standard headers. There are also a bunch of boost headers that share the same name as other boost headers. There is no end to the grief this will cause you.

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

Sidebar

Related Questions

I can't for the life of me get Xcode to link to Boost.Signals properly.
I have an Xcode project with several static library dependancies set up in the
Is there a specific Xcode compiler flag that gets set when compiling for iPad?
I have try to set icon for my App in the xCode. In the
Looking for the best way to set-up an iPhone project in XCode ... namely:
Xcode automatically resizes and applies a glossy look to images added as the application
Xcode is throwing an error at me: malloc: * error for object 0x103f000: pointer
I have enabled OpenMP using following settings on 10.7.2 OS (Xcode): GCC_VERSION = 4.2
I need to load some text (shader code) from a file that is placed
i get message during archive validation. i've tried most of solutions from other questions.

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.