473,404 Members | 2,213 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,404 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 1389
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.