<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Feng,<br>
      <br>
      you have to<br>
      #include "config.h"<br>
      from your top-level build directory, always should work within a
      Dune module and use the CMake-based Dune buildsystem. See this for
      a good introduction:<br>
<a class="moz-txt-link-freetext" href="http://www.math.tu-dresden.de/~osander/research/sander-getting-started-with-dune.pdf">http://www.math.tu-dresden.de/~osander/research/sander-getting-started-with-dune.pdf</a><br>
      <br>
      If you want to do it the hard way, you can start by manually
      setting preprocessor variables like "-DHAVE_NULLPTR=1", but that's
      not recommended.<br>
      <br>
      Kind regards<br>
      Bernd<br>
      <br>
      On 07/11/2016 03:01 PM, Feng Xing wrote:<br>
    </div>
    <blockquote
      cite="mid:10920DC6-5B9A-4ADD-8F5D-D6D363217288@gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      Hello,
      <div class=""><br class="">
      </div>
      <div class="">I would like to look for a little help about my
        first code with dune, il contains one line in main():
        cout<<“hello”<<endl;</div>
      <div class="">I got the following error when including
        "dune/common/nullptr.hh”:</div>
      <div class=""><br class="">
      </div>
      <div class="">
        <div style="margin: 0px; font-family: Courier; color: rgb(76,
          47, 45); background-color: rgb(223, 219, 196);" class="">/usr/local/dune-2.4.1/include/dune/common/nullptr.hh:29:1:
          error: expected ';' after class definition</div>
        <div style="margin: 0px; font-family: Courier; color: rgb(76,
          47, 45); background-color: rgb(223, 219, 196);" class=""> }
          nullptr = {};              // and whose name is nullptr</div>
      </div>
      <div class="">
        <div style="margin: 0px; font-family: Courier; color: rgb(76,
          47, 45); background-color: rgb(223, 219, 196);" class="">/usr/local/dune-2.4.1/include/dune/common/nullptr.hh:29:1:
          error: qualifiers can only be specified for objects and
          functions</div>
        <div style="margin: 0px; font-family: Courier; color: rgb(76,
          47, 45); background-color: rgb(223, 219, 196);" class="">/usr/local/dune-2.4.1/include/dune/common/nullptr.hh:29:3:
          error: expected unqualified-id before 'nullptr'</div>
        <div style="margin: 0px; font-family: Courier; color: rgb(76,
          47, 45); background-color: rgb(223, 219, 196);" class=""> }
          nullptr = {};              // and whose name is nullptr</div>
      </div>
      <div style="margin: 0px; font-family: Courier; color: rgb(76, 47,
        45); background-color: rgb(223, 219, 196);" class=""><br
          class="">
      </div>
      <div class=""><br class="">
      </div>
      <div class="">Il seems that it’s from const obj dune_nullptr_t in
        nullptr.hh. I use GCC4.9 (or GCC5.3) with std=c++11 in mac. Dune
        version is 2.4.1.</div>
      <div class=""><br class="">
      </div>
      <div class="">Thank you very much.</div>
      <div class=""><br class="">
      </div>
      <div class="">Best regards,</div>
      <div class=""><br class="">
      </div>
      <div class="">Feng Xing</div>
      <div class="">Postdoc INRIA France</div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Dune mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dune@dune-project.org">Dune@dune-project.org</a>
<a class="moz-txt-link-freetext" href="http://lists.dune-project.org/mailman/listinfo/dune">http://lists.dune-project.org/mailman/listinfo/dune</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
_______________________________________________________________

Bernd Flemisch                         phone: +49 711 685 69162
IWS, Universität Stuttgart             fax:   +49 711 685 60430
Pfaffenwaldring 61            email: <a class="moz-txt-link-abbreviated" href="mailto:bernd@iws.uni-stuttgart.de">bernd@iws.uni-stuttgart.de</a>
D-70569 Stuttgart            url: <a class="moz-txt-link-abbreviated" href="http://www.hydrosys.uni-stuttgart.de">www.hydrosys.uni-stuttgart.de</a>
_______________________________________________________________
</pre>
  </body>
</html>