tki proj main cpp ShTlTerrainSceneNode cpp ChunkManager cpp MyEventRec

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
D:\tki\proj>g++ main.cpp ShTlTerrainSceneNode.cpp ChunkManager.cpp MyEventReceiv
er.cpp WorldSubsystems.cpp ObjectCreator.cpp -o main.exe -Llib -Iinclude
In file included from d:\qt\tools\mingw48_32\lib\gcc\i686-w64-mingw32\4.8.0\incl
ude\c++\mutex:35:0,
from ChunkManager.hpp:17,
from WorldSubsystems.hpp:10,
from ObjectCreator.hpp:7,
from MyEventReceiver.hpp:5,
from main.cpp:4:
d:\qt\tools\mingw48_32\lib\gcc\i686-w64-mingw32\4.8.0\include\c++\bits\c++0x_war
ning.h:32:2: error: #error This file requires compiler and library support for t
he ISO C++ 2011 standard. This support is currently experimental, and must be en
abled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
In file included from WorldSubsystems.hpp:10:0,
from ObjectCreator.hpp:7,
from MyEventReceiver.hpp:5,
from main.cpp:4:
ChunkManager.hpp:40:2: error: 'uint8_t' does not name a type
uint8_t loaded; // already loaded chunks
^
In file included from d:\qt\tools\mingw48_32\lib\gcc\i686-w64-mingw32\4.8.0\incl
ude\c++\mutex:35:0,
from ChunkManager.hpp:17,
from ChunkManager.cpp:1:
d:\qt\tools\mingw48_32\lib\gcc\i686-w64-mingw32\4.8.0\include\c++\bits\c++0x_war
ning.h:32:2: error: #error This file requires compiler and library support for t
he ISO C++ 2011 standard. This support is currently experimental, and must be en
abled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
In file included from ChunkManager.cpp:1:0:
ChunkManager.hpp:40:2: error: 'uint8_t' does not name a type
uint8_t loaded; // already loaded chunks
^
ChunkManager.cpp: In member function 'void ChunkManager::init(irr::IrrlichtDevic
e*, irr::video::IVideoDriver*, irr::scene::ISceneManager*, irr::scene::ICameraSc
eneNode*)':
ChunkManager.cpp:16:2: error: 'loaded' was not declared in this scope
loaded=0;
^
ChunkManager.cpp:22:58: warning: extended initializer lists only available with
-std=c++11 or -std=gnu++11 [enabled by default]
terrain[std::pair<int,int>(i,j)] = {i,j,loadChunk(i,j)};
^
ChunkManager.cpp:22:37: warning: extended initializer lists only available with
-std=c++11 or -std=gnu++11 [enabled by default]
terrain[std::pair<int,int>(i,j)] = {i,j,loadChunk(i,j)};
^
ChunkManager.cpp: In member function 'ShTlTerrainSceneNode* ChunkManager::loadCh
unk(int, int)':
ChunkManager.cpp:78:28: error: 'to_string' is not a member of 'std'
std::string path = "map/"+std::to_string(i)+"."+std::to_string(j);
^
ChunkManager.cpp:78:50: error: 'to_string' is not a member of 'std'
std::string path = "map/"+std::to_string(i)+"."+std::to_string(j);
^
ChunkManager.cpp:115:2: error: 'loaded' was not declared in this scope
loaded ++;
^
ChunkManager.cpp: In member function 'void ChunkManager::freeChunks()':
ChunkManager.cpp:156:4: error: 'loaded' was not declared in this scope
loaded --;
^
ChunkManager.cpp: In member function 'void ChunkManager::update()':
ChunkManager.cpp:175:6: error: 'loaded' was not declared in this scope
if(loaded > MAX_DEST_I*MAX_DEST_J) freeChunks();
^
ChunkManager.cpp:182:65: warning: extended initializer lists only available with
-std=c++11 or -std=gnu++11 [enabled by default]
terrain[std::pair<int,int>(i,j)]= {i, j, loadChunk(i , j)};
^
ChunkManager.cpp:182:40: warning: extended initializer lists only available with
-std=c++11 or -std=gnu++11 [enabled by default]
terrain[std::pair<int,int>(i,j)]= {i, j, loadChunk(i , j)};
^
In file included from d:\qt\tools\mingw48_32\lib\gcc\i686-w64-mingw32\4.8.0\incl
ude\c++\mutex:35:0,
from ChunkManager.hpp:17,
from WorldSubsystems.hpp:10,
from ObjectCreator.hpp:7,
from MyEventReceiver.hpp:5,
from MyEventReceiver.cpp:1:
d:\qt\tools\mingw48_32\lib\gcc\i686-w64-mingw32\4.8.0\include\c++\bits\c++0x_war
ning.h:32:2: error: #error This file requires compiler and library support for t
he ISO C++ 2011 standard. This support is currently experimental, and must be en
abled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
In file included from WorldSubsystems.hpp:10:0,
from ObjectCreator.hpp:7,
from MyEventReceiver.hpp:5,
from MyEventReceiver.cpp:1:
ChunkManager.hpp:40:2: error: 'uint8_t' does not name a type
uint8_t loaded; // already loaded chunks
^
In file included from d:\qt\tools\mingw48_32\lib\gcc\i686-w64-mingw32\4.8.0\incl
ude\c++\mutex:35:0,
from ChunkManager.hpp:17,
from WorldSubsystems.hpp:10,
from WorldSubsystems.cpp:1:
d:\qt\tools\mingw48_32\lib\gcc\i686-w64-mingw32\4.8.0\include\c++\bits\c++0x_war
ning.h:32:2: error: #error This file requires compiler and library support for t
he ISO C++ 2011 standard. This support is currently experimental, and must be en
abled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
In file included from WorldSubsystems.hpp:10:0,
from WorldSubsystems.cpp:1:
ChunkManager.hpp:40:2: error: 'uint8_t' does not name a type
uint8_t loaded; // already loaded chunks
^
In file included from d:\qt\tools\mingw48_32\lib\gcc\i686-w64-mingw32\4.8.0\incl
ude\c++\mutex:35:0,
from ChunkManager.hpp:17,
from WorldSubsystems.hpp:10,
from ObjectCreator.hpp:7,
from ObjectCreator.cpp:1:
d:\qt\tools\mingw48_32\lib\gcc\i686-w64-mingw32\4.8.0\include\c++\bits\c++0x_war
ning.h:32:2: error: #error This file requires compiler and library support for t
he ISO C++ 2011 standard. This support is currently experimental, and must be en
abled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
In file included from WorldSubsystems.hpp:10:0,
from ObjectCreator.hpp:7,
from ObjectCreator.cpp:1:
ChunkManager.hpp:40:2: error: 'uint8_t' does not name a type
uint8_t loaded; // already loaded chunks
^
D:\tki\proj>