<div dir="ltr"><br><div class="gmail_quote">Okay I now understand what causes the strange behaviour. It is NOT the gccxml wrapper, instead it is just the file name extension. Below are the examples,<br><span style="color:rgb(0,0,255)"><br>castxml example.h --castxml-gccxml -o example.xml<br>error: '--castxml-gccxml' does not work with c11<br><br>castxml example.h --castxml-gccxml -o example.xml -std=c++11<br><br>error: invalid argument '-std=c++11' not allowed with 'C/ObjC'<br>deneme.h:3:7: error: use of undeclared identifier 'std'<br>using std::cout;<br>      ^<br>deneme.h:4:7: error: use of undeclared identifier 'std'<br>using std::endl;<br>      ^<br>2 errors generated.<br><br></span><br>Below is the example file I am trying to parse,<br><br><pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-size:11.3pt"><span style="font-family:arial,helvetica,sans-serif"><span style="color:rgb(128,128,128);font-style:italic">//#include <iostream><br></span><span style="color:rgb(128,128,128);font-style:italic"><br></span><span style="color:rgb(102,14,122);font-weight:bold">using </span>std::cout;<br><span style="color:rgb(102,14,122);font-weight:bold">using </span>std::endl;<br><br><span style="color:rgb(102,14,122);font-weight:bold">class </span>Car{<br><span style="color:rgb(102,14,122);font-weight:bold">private</span>:<br>    <span style="color:rgb(0,0,128);font-weight:bold">int </span>deneme;<br>    <span style="color:rgb(0,0,128);font-weight:bold">double </span>other;<br>    <span style="color:rgb(0,0,128);font-weight:bold">char </span>ahahaha;<br><br><span style="color:rgb(102,14,122);font-weight:bold">public</span>:<br>    Car();<br>    Car(Car && obj);<br>    ~Car();<br><br>};<br><br></span></pre><pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-size:11.3pt"><span style="font-family:arial,helvetica,sans-serif">But if I change the file's name from example.h to example.hpp, everything seems to work fine.<br></span></pre><br>  </div></div>