title: CodeSourcery giving compilation error: missing bits/c++config.h
body: <p>in my project I'm making use of Eigen C++ library for linear algebra. <strong>ONLY</strong> when I turn on the vectorization flags (-mfpu=neon -mfloat-abi=softfp) for ARM NEON, I get a compiler error - c++config.h no such file or directory.</p>
  
  <p>I'm not able to understand whats going wrong, what is this bits/c++config.h? What should I do to fix this problem?</p>
  
  <p>Vikram</p>
  
  <hr>
  
  <p>main.c</p>
  
  <pre><code>#include&lt;iostream&gt;
  #include &lt;Eigen/Core&gt;
  
  // import most common Eigen types
  using namespace Eigen;
  
  int main(int, char *[])
  {
      Matrix4f m3;
      m3 &lt;&lt; 1, 2, 3, 0, 4, 5, 6, 0, 7, 8, 9, 0, 0, 0, 0, 0;
      Matrix4f m4;
  
      asm("#begins here");
      m4 = m3*m3;
      asm("#ends here");
  
      std::cout &lt;&lt; "m3\n" &lt;&lt; m3 &lt;&lt; "\nm4:\n" &lt;&lt; m4 &lt;&lt; std::endl;
  
      std::cout &lt;&lt; "DONE!!";
  }
  </code></pre>
  
  <hr>
  
  <p>makefile</p>
  
  <pre><code>CPP=    /home/ubuntu/CodeSourcery/Sourcery_G++/bin/arm-none-linux-gnueabi-c++
  
  all: main 
  
  main: main.cpp
      $(CPP) -mfpu=neon -mfloat-abi=softfp -I /home/ubuntu/Documents/eigen/ main.cpp -o main
  
  clean:
      rm -rf *o main
  </code></pre>
  
  <hr>
  
  <p>Errors</p>
  
  <pre><code>**** Build of configuration Debug for project Test_Eigen ****
  
  make all
  /home/ubuntu/CodeSourcery/Sourcery_G++/bin/arm-none-linux-gnueabi-c++ -mfpu=neon -mfloat-abi=softfp -I /home/ubuntu/Documents/eigen/ main.cpp -o main
  In file included from main.cpp:1:
  /home/ubuntu/CodeSourcery/Sourcery_G++/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/include/c++/4.4.1/iostream:39: fatal error: bits/c++config.h: No such file or directory
  compilation terminated.
  make: *** [main] Error 1
  </code></pre>