Advertisement
Guest User

Removing "-std=c++11" results in this

a guest
Mar 18th, 2016
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. $ make
  2. g++ -Wall -g -I. -DUNICODE -D_UNICODE -DMINGW -DWIN32 -c -o main.o main.cpp
  3. main.cpp: In member function 'virtual void GameWindow::draw()':
  4. main.cpp:176:27: warning: range-based 'for' loops only available with -std=c++11 or -std=gnu++11
  5. for (Star& star : stars)
  6. ^
  7. main.cpp:179:32: error: 'to_wstring' is not a member of 'std'
  8. font.draw(L"Score: " + std::to_wstring(player.getScore()), 10, 10, zUI, 1, 1, Gosu::Color::YELLOW);
  9. ^
  10. In file included from ./Gosu/Bitmap.hpp:9:0,
  11. from ./Gosu/Gosu.hpp:14,
  12. from main.cpp:2:
  13. ./Gosu/GraphicsBase.hpp: At global scope:
  14. ./Gosu/GraphicsBase.hpp:100:34: warning: 'Gosu::zImmediate' defined but not used [-Wunused-variable]
  15. GOSU_DEPRECATED const double zImmediate = -std::numeric_limits<double>::infinity();
  16. ^
  17. <builtin>: recipe for target 'main.o' failed
  18. make: *** [main.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement