Jump to content
  • Advertisement
Sign in to follow this  
Bladelock

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.

If you intended to correct an error in the post then please contact us.

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

I did download his source code from the link he provided in his post

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 this post


Link to post
Share on other sites
Advertisement
Replace "sf::Color::Color boardColor;" with "sf::Color boardColor;" at line 83 in board.h

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!