Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to force xcode to use the correct iostream header c++
    primarykey
    data
    text
    <pre><code>xcode 4.2 os x 10.7 </code></pre> <p>when i set my includes to look like:</p> <pre><code>#include &lt;iostream&gt; #include &lt;boost/thread.hpp&gt; </code></pre> <p>I get the following error from a file located at <code>/opt/local/include/boost/tr1/tr1</code></p> <pre><code>Lexical or Preprocessor Issue 'boost/tr1/detail/config_all.hpp' file not found </code></pre> <p>Contents of the <code>/opt/local/include/boost/tr1/tr1/iostream</code> file:</p> <pre><code>// (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 &lt;boost/tr1/detail/config_all.hpp&gt; # if defined(BOOST_HAS_INCLUDE_NEXT) &amp;&amp; !defined(BOOST_TR1_DISABLE_INCLUDE_NEXT) # include_next &lt;iostream&gt; # 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 </code></pre> <p>I should be using the iostream header located at <code>/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/</code></p> <p>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. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload