Panel użytkownika
Nazwa użytkownika:
Hasło:
Nie masz jeszcze konta?

Problem z #include <array>

Ostatnio zmodyfikowano 2013-03-20 17:31
Autor Wiadomość
Gepandza
Temat założony przez niniejszego użytkownika
Problem z #include <array>
» 2013-03-20 16:43:49
Witam. Otóż mam pewien problem. Mianowicie mam problem z #include <array>. Gdy inkluduję array to wyskakują mi błędy i nowa karta z błędem wyskakuje.
Używam: Dev C++ http://orwelldevcpp.blogspot.com/

C/C++
// Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library.  This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your option)
// any later version.

// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// Under Section 7 of GPL version 3, you are granted additional
// permissions described in the GCC Runtime Library Exception, version
// 3.1, as published by the Free Software Foundation.

// You should have received a copy of the GNU General Public License and
// a copy of the GCC Runtime Library Exception along with this program;
// see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
// <http://www.gnu.org/licenses/>.

/** @file bits/c++0x_warning.h
*  This is an internal header file, included by other library headers.
*  Do not attempt to use it directly. @headername{iosfwd}
*/

#ifndef _CXX0X_WARNING_H
#define _CXX0X_WARNING_H 1

#ifndef __GXX_EXPERIMENTAL_CXX0X__
#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

#endif
P-78927
Chlorek
» 2013-03-20 17:14:34
Włącz obsługę C++0x (C++11).

#Edit
Dla mingw jest to
-std=c++11
Jak masz np. code::blocks to wejdź w:
Project -> Build Options -> Compiler Settings -> Zaznacz "Have g++ follow C++11 standard" czy jakoś tak.
P-78936
Gepandza
Temat założony przez niniejszego użytkownika
» 2013-03-20 17:22:02
Serdecznie dziękuję :D Pobiorę code::blocks i sprawdzę czy zadziała.
P-78937
Chlorek
» 2013-03-20 17:31:24
Jak używasz kompilatora mingw to wystarczy dodać parametr -std=c++11, obojętne jest IDE.
P-78939
« 1 »
  Strona 1 z 1