473,325 Members | 2,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

VC++ not recognizing 'GameBoard' in code

2
I have a class Chess with the contructor:
Chess(const GameBoard& argGameBoard,int,int,Color,int); //line 1
and a property:
GameBoard& mGameBoard; //line 2

to creat a reference to one obj of GameBoard: :mGameBoard(argGameBoard) at constructor.

But when It's compiled (by VC2005++). This errors occured:
at line 1
Expand|Select|Wrap|Line Numbers
  1. 1>e:\vc2005\chessgame\src\Chess.h(34) : error C2059: syntax error : '<cv-qualifer>'
  2. 1>e:\vc2005\chessgame\src\Chess.h(34) : error C2238: unexpected token(s) preceding ';'
  3.  
and at line 2:
Expand|Select|Wrap|Line Numbers
  1. 1>e:\vc2005\chessgame\src\Chess.h(69) : error C2143: syntax error : missing ';' before '&'
  2. 1>e:\vc2005\chessgame\src\Chess.h(69) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
It seem that Compiler don't know what GameBoard is in class Chess.
Here class GameBoard I have defined and included. It have a property:
Stack<TurnHistory>& aReport;

Who can tell me what it is?

Tks a lot!
Sep 15 '07 #1
2 1385
huyvtq
2
Who can help me??? pls
Sep 16 '07 #2
weaknessforcats
9,208 Expert Mod 8TB
I can help you but I need to see chess.h.

The errors can be due to a number of things.
Sep 16 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: um | last post by:
When the POSIX pthreads library for w32 release 2-2-0 (http://sources.redhat.com/pthreads-win32/) is compiled with VC++6 then it compiles and passes all the benchmark tests in the subdirectory...
5
by: Marc Violette | last post by:
<Reply-To: veejunk@sympatico.ca> Hello, I'm hoping someone can help me out here... I'm a beginner ASP.NET developper, and am trying to follow a series of exercises in the book entitled...
0
by: Glenn Venzke | last post by:
I'm using a ColdFusion app to consume a .NET webservice with 3 methods and I'm running into a problem. The first time I added a web reference & compiled the service (with VS.NET standard edition...
7
by: matthieu.bocktaels | last post by:
Hi, I have a PC104 Input/Output card that support IRQ (IRQ2 to 7) that is connected to a PC (x86). I am writing a win32 application with VisualC that must be able to recover and redirect...
0
by: parekh | last post by:
Hi All , I am facing a problem wherein my VB project is not recognizing a change in the argument list of a method ( the method itself being declared and defined in another VC++ project and it...
15
by: John Gonsalves | last post by:
I'm experiencing problems related to IIS/ASP.NET not recognizing writes to web.config that my web application performs. Specifically I have a web application that provides an interface allowing...
10
by: Huyvtq | last post by:
I have a class Chess with the contructor: Chess(const GameBoard& argGameBoard,int,int,Color,int); //line 1 and a property: GameBoard& mGameBoard; //line 2 to creat a reference to one obj of...
1
by: thulaseeram | last post by:
hi, i am using the following code for uploading <div id="iframe" name="iframe" style="width:850px; height:120px;"> <iframe name="attach_frame" id="attach_frame"...
1
by: Peter Oliphant | last post by:
I have written a program using VC++ 2008 Express (Beta 2). It uses System::Speech for speech recognition. My program works fine in VS GUI, both Debug and Release. It also works fine in Debug...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.