Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index


Hi Stephan,

Indeed it was a C++11 header.
Thanks for the help.

2014-09-29 9:23 GMT+02:00 Stephan Bergmann <sbergman@redhat.com>:

On 09/28/2014 11:46 AM, Zolnai Tamás wrote:

I tried it an it came out there are other C++11 stuff in the code. I
tried to replace them, but the compiler does not help me with finding
C++11 code. When I compile with --std=c++03 flag, compiler just write out:
error: #error This file requires compiler and library support for the
ISO C++ 2011 standard. This support is currently experimental, and must
be enabled with the -std=c++11 or -std=gnu++11 compiler options.
Is there any option to avoid this general error and force the compiler
to try the older standard.


That #error message smells like some code includes a standard header that
is suitable for C++11 only and includes libstdc++'s bits/c++0x_warning.h
which contains

 #if __cplusplus < 201103L
#error This file requires compiler and library support for the \
ISO C++ 2011 standard. This support is currently experimental, and must
be \
enabled with the -std=c++11 or -std=gnu++11 compiler options.
#endif


You need to track down the include stack (which is typically spit out by
GCC before showing the #error diagnostic, no?) to see what problematic
standard header is being included where.

Stephan

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.