<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">The -std=c++11 does not really tell
      what type of file it is. Only that if it is C++ it should be
      treated as C++11. In GCC you use -x c++ to tell that the source is
      C++. I do not know if the castxml-wrapper or gccxml will accept
      that option.<br>
      <br>
      Jens<br>
      <br>
      On 2015-11-30 19:53, Uğur Büyükdurak wrote:<br>
    </div>
    <blockquote
cite="mid:CAJM+KQ0YNnO7PWQH+VZ+hgoyri4e08VgfKs8AfJfXxtGkLVWLQ@mail.gmail.com"
      type="cite">
      <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>
</span><span style="color:rgb(128,128,128);font-style:italic">
</span><span style="color:rgb(102,14,122);font-weight:bold">using </span>std::cout;
<span style="color:rgb(102,14,122);font-weight:bold">using </span>std::endl;

<span style="color:rgb(102,14,122);font-weight:bold">class </span>Car{
<span style="color:rgb(102,14,122);font-weight:bold">private</span>:
    <span style="color:rgb(0,0,128);font-weight:bold">int </span>deneme;
    <span style="color:rgb(0,0,128);font-weight:bold">double </span>other;
    <span style="color:rgb(0,0,128);font-weight:bold">char </span>ahahaha;

<span style="color:rgb(102,14,122);font-weight:bold">public</span>:
    Car();
    Car(Car && obj);
    ~Car();

};

</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.
</span></pre>
          <br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
CastXML mailing list
<a class="moz-txt-link-abbreviated" href="mailto:CastXML@public.kitware.com">CastXML@public.kitware.com</a>
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/castxml">http://public.kitware.com/mailman/listinfo/castxml</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>