Sign in to follow this  
Bladelock

Can't run an SFML tutorial

Recommended Posts

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

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

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

[url="http://www.mediafire.com/?lzijniewqww"]http://www.mediafire.com/?lzijniewqww[/url]


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.
[code]

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 ==========


[/code]

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this