Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [First SFML Project] 2D Minecraft  (Read 16647 times)

0 Members and 3 Guests are viewing this topic.

MarcuzPwnz

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
Re: [First SFML Project] 2D Minecraft
« Reply #15 on: February 10, 2013, 02:12:32 am »
From http://en.sfml-dev.org/forums/index.php?topic=9513.0 do I want to download the latest build for MinGW TDM GCC 4.7.1 32bit?

Considering I have MinGW 4.7.1? :)

io

  • Jr. Member
  • **
  • Posts: 52
  • z/OS by day, SFML by night
    • View Profile
Re: [First SFML Project] 2D Minecraft
« Reply #16 on: February 10, 2013, 08:14:14 am »
yup you'll want 4.7.1 32bit tdm @ http://sfml.my-gate.net/nightly/

MarcuzPwnz

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
Re: [First SFML Project] 2D Minecraft
« Reply #17 on: February 10, 2013, 09:51:36 am »
Nope :/

mingw32-g++.exe -std=c++11 -Wall -DSFML_STATIC  -std=c++11 -g    -IC:\Users\newowner\Documents\TDM471x32\include -I"C:\Program Files\CodeBlocks\include"  -c "C:\Users\newowner\Documents\Marcuzcraft 2D v0.1.3\Source\BlockHandler.cpp" -o "obj\Debug\Documents\Marcuzcraft 2D v0.1.3\Source\BlockHandler.o"
cc1plus.exe: error: unrecognized command line option '-std=c++11'
cc1plus.exe: error: unrecognized command line option '-std=c++11'
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings (0 minutes, 0 seconds)

THIS is the reason I have a Mac. :P hehe

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
AW: [First SFML Project] 2D Minecraft
« Reply #18 on: February 10, 2013, 01:55:55 pm »
You've defined the flag twice, not exactly sure if that's the problem but it might.

Please don't provoke flamewars (i.e. your Mac comment is unessecary).
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: [First SFML Project] 2D Minecraft
« Reply #19 on: February 10, 2013, 02:21:17 pm »
Try -std=c++0x instead of -std=c++11.

Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

io

  • Jr. Member
  • **
  • Posts: 52
  • z/OS by day, SFML by night
    • View Profile
Re: [First SFML Project] 2D Minecraft
« Reply #20 on: February 11, 2013, 12:58:39 am »
here is the build output (partial) when I compile one of my projects
Code: [Select]
mingw32-g++.exe -std=c++11 -Wall -DSFML_STATIC  -g    -IC:\SFML\2.0\include  -c C:\Users\iopi\Desktop\Projects\ROBOCode\eye.cpp -o obj\Debug\eye.o

0x is worth a shot, but if he is on the latest CB & MingW I wouldn't think it would be necessary o.o

One that crossed my mind... did you uninstall Code:Blocks completely and re install (CB 12.11 w/ MingW 4.71).  *maybe* your code blocks ide is somehow pointing to the old ming version? 

Are you compiling through the ide or trying to do it through console?
« Last Edit: February 11, 2013, 09:09:21 am by io »

MarcuzPwnz

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
Re: [First SFML Project] 2D Minecraft
« Reply #21 on: February 11, 2013, 08:51:49 am »
@eXpl0it3r, Okay, I wasn't trying to start a flamewar I was just trying to have a laugh.


Barlog

  • Guest
Re: [First SFML Project] 2D Minecraft
« Reply #22 on: February 11, 2013, 05:43:20 pm »
Personally I use this MinGW distro http://nuwen.net/mingw.html
But you need to modify compiler executables path in Code:Blocks compiler configuration to make things work.
Also, you need to check and set C++11 compiler option in project build setting.

 

anything