[Dune] dune-grid-howto: compilation error in integration.cc
Carsten Gräser
graeser at math.fu-berlin.de
Tue Mar 30 10:57:21 CEST 2010
Am 30.03.2010 10:31, schrieb Christian Engwer:
> On Tue, Mar 30, 2010 at 10:15:26AM +0200, Jö Fahlke wrote:
>> Am Tue, 30. Mar 2010, 09:16:43 +0200 schrieb Benedikt Oswald:
>>> /Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/yaspgrid.hh:8:18:
>>> error: cstdint: No such file or directory
>>
>> I think the problem is the #include <cstdint> instroduced in dune-grid r6545
>> by chriti. I cannot find the header cstdint in the standard, so that commit
>> was probably wrong. Christi, can you please have a look?
>
> OK, I checked... the include was necessary to use the uint8_t. Sadly
> this header is only part of C++0x. Can anybody tell me what is the
> correct way of using fixed bit-with integral types? Would the stdint.h
> header (part of C99) be a viable solution?
>
> Opinions?
While <stdint.h> is only part of C99 but not of ISO C++ the
tr1 extension defines <stdint.h> and <cstdint>. The later
puts the types in the std:: namespace <stdint.h> provides them
in the global namespace (like C99).
If we want to realy on plain ISO C++ without extensions the
answer is simple: Don't use any of those headers or reimplement it.
Carsten
--
----------------------------------------------------------------------
Carsten Gräser | phone: +49-30 / 838-75349
Freie Universität Berlin | fax : +49-30 / 838-54977
Institut für Mathematik | email: graeser at math.fu-berlin.de
Arnimallee 6 |
14195 Berlin, Germany | URL : http://page.mi.fu-berlin.de/graeser
----------------------------------------------------------------------
More information about the Dune
mailing list