title: XCode with boost "Semantic Issue - undeclared identifier va_start"
body: <pre><code>C++locale.h
  -&gt;Semantic Issue
  --&gt;Use of undeclared identifier 'va_start'
  -&gt;Semantic Issue
  --&gt;Use of undeclared identifier 'va_end'
  </code></pre>
  
  <p>First time using boost, downloaded it using ports and created a command line project in XCode.
  Header Search Path: /usr/include/**</p>
  
  <p>There is nothing in the code yet, just the main function that comes with the default proj.</p>
  
  <p>Just don't know what to do, never expected this to happen.</p>
  
  <p>EDIT1:</p>
  
  <p>First occurrence:</p>
  
  <pre><code>#ifndef _GLIBCXX_CSTDARG
  #define _GLIBCXX_CSTDARG 1
  
  #pragma GCC system_header
  
  #include &lt;bits/c++config.h&gt;
  #include &lt;stdarg.h&gt;
  
  // Adhere to section 17.4.1.2 clause 5 of ISO 14882:1998
  #ifndef va_end
  #define va_end(ap) va_end (ap)
  #endif
  
  _GLIBCXX_BEGIN_NAMESPACE(std)
  
    using ::va_list;
  
  _GLIBCXX_END_NAMESPACE
  
  #endif
  </code></pre>
  
  <p>It's a file without extension in \usr\include\c++\4.2.1 and i just realized that this file has nothing to do with boost, there is something nasty happening here.</p>
  
  <p>EDIT2: After fixing the include dir to /opt/local/include/** new errors appeared:</p>
  
  <pre><code>/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/c++/v1/type_traits:214:46:
  Use of undeclared identifier 'nullptr_t'; did you mean 'nullptr'?
  </code></pre>
  
  <p>There are other errors, all related to these files in the folder sr/lib/c++/v1/ why is that? These file seems to be some core functionality, they can't be broke.</p>
  
  <p>Here is a pic of the errors, maybe ou guys see something
  <img src="https://i.stack.imgur.com/OSGZu.png" alt="Errors"></p>
  
  <p>EDIT3: Changing the compiler from Apple LLVM to GCC LLVM reduces the errors to only one:
  "vspintf is not a member of 'std'" in c++locale.h. Ok, now I'm completely lost. </p>