title: premake c++ "hello world" error
body: <p>I'm trying to get a premake4 helloworld c++ working
  but get an error when invoking make with release config after the makefile is created with premake. (I'm using clang on osx 10.9.4)
  Calling <code>make config=release</code> produces:</p>
  
  <pre><code>ld: internal error: atom not found in symbolIndex(...
  </code></pre>
  
  <p>If I add the "Symbols" flag to the release flags everything works fine.
  But this of course creates debug symbols. </p>
  
  <p>premake4.lua:</p>
  
  <pre><code>solution "cpp_hello_world"
  configurations { "Debug", "Release"}
  
  project "cpp_hello_world.out"
  kind "ConsoleApp"
  language "C++"
  files { "**.cpp" }
  
  buildoptions { "-std=c++1y" } 
  
  configuration "Debug"
  defines { "DEBUG" }
  flags { "Symbols" }
  
  configuration "Release"
  defines { "NDEBUG" }
  flags { "Optimize" }
  </code></pre>
  
  <p>main.cpp:</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  int main(){
      std::cout &lt;&lt; "hello world" &lt;&lt; std::endl;
      return 0;
  }
  </code></pre>
  
  <p>Any idea why it does not work like in the standard example?
  <a href="http://industriousone.com/post/typical-c-project-0" rel="nofollow">http://industriousone.com/post/typical-c-project-0</a></p>
  
  <p>complete output using <code>make config=release verbose=1</code>:</p>
  
  <pre><code>==== Building cpp_hello_world.out (release) ====
  Creating obj/Release
  mkdir -p obj/Release
  main.cpp
  c++ -MMD -MP -DNDEBUG   -O2 -std=c++1y  -o "obj/Release/main.o" -c "main.cpp"
  Linking cpp_hello_world.out
  c++ -o ./cpp_hello_world.out obj/Release/main.o  -Wl,-x
  ld: internal error: atom not found in symbolIndex(__ZNSt3__1lsINS_11char_traitsIcEEEERNS_13basic_ostreamIcT_EES6_PKc) for architecture x86_64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  make[1]: *** [cpp_hello_world.out] Error 1
  make: *** [cpp_hello_world.out] Error 2
  </code></pre>