Public Group

# Can't run an SFML tutorial

This topic is 2598 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

well, in the SFML forums, someone posted this tutorial on how to make a "Four in A Row" game using SFML

http://www.sfml-dev.org/forum/viewtopic.php?t=1561&sid=991fa7722ee20bc50c2d1125e9e77e97

http://www.mediafire.com/?lzijniewqww

However, when I try to run his tutorial, there seems to be a problem that's caused by three(or four if the header file counts) files.
 1>------ Build started: Project: sfml_Game, Configuration: Debug Win32 ------ 1> uInterface.cpp 1>\fourinarow\board.h(83): error C2146: syntax error : missing ';' before identifier 'boardColor' 1>\fourinarow\board.h(83): error C2602: 'sf::Color::{ctor}' is not a member of a base class of 'Board' 1> \fourinarow\board.h(64) : see declaration of 'Board' 1>\fourinarow\board.h(83): fatal error C1903: unable to recover from previous error(s); stopping compilation 1> main.cpp 1>\fourinarow\board.h(83): error C2146: syntax error : missing ';' before identifier 'boardColor' 1>\fourinarow\board.h(83): error C2602: 'sf::Color::{ctor}' is not a member of a base class of 'Board' 1>\fourinarow\board.h(64) : see declaration of 'Board' 1>\fourinarow\board.h(83): fatal error C1903: unable to recover from previous error(s); stopping compilation 1> board.cpp 1>\fourinarow\board.h(83): error C2146: syntax error : missing ';' before identifier 'boardColor' 1>\fourinarow\board.h(83): error C2602: 'sf::Color::{ctor}' is not a member of a base class of 'Board' 1>\fourinarow\board.h(64) : see declaration of 'Board' 1>\fourinarow\board.h(83): fatal error C1903: unable to recover from previous error(s); stopping compilation 1> Generating Code... ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== 

I'm a bit stumped. Hehe.
I downloaded the code since I just wanted some kind of "exposure" before diving into the world of SFML, so I know almost nothing about SFML right now.
I posted it here since this is probably among the few forums that actually gives time for stumped newbs(or even noobs) like me, plus the fact that it's a bit too cumbersome for me to create a new account, validate address, etc etc etc, at another forum just to post that I can't run this tutorial program.
Cheers!

##### Share on other sites
Replace "sf::Color::Color boardColor;" with "sf::Color boardColor;" at line 83 in board.h

1. 1
2. 2
Rutin
22
3. 3
JoeJ
18
4. 4
5. 5

• 15
• 40
• 23
• 13
• 13
• ### Forum Statistics

• Total Topics
631724
• Total Posts
3001903
×