|
From: <qa...@ho...> - 2002-11-14 16:32:25
|
Hi.
Can anyone tell me why I get the following error when I compile the code=
below?
The file supplied is only one of many so you will not be able to compile=
it.
If I compile this with mingw2.95 it works fine, but not with v3.2.
Unfortunately i can not use the -O3 switch with 2.95 (just with this=
program, not in general) because the file "cc1.exe" (I think that was what=
it was called) crashes during compilation.
Let me know if you need any further information
/J
------Compiler log------
g++.exe -c ../Annullo_shared/DecodedInfo.cpp -o=
../Annullo_shared/DecodedInfo.o=
-I"D:\Programmering\Compiler\Mingw\include"=
-I"D:\Programmering\Compiler\Mingw\include\c++\3.2"=
-I"D:\Programmering\Compiler\Mingw\include"=
-I"D:\Programmering\IDE\Dev-Cpp\__Projects\Annullo_ClientServer\Annullo_sh=
ared" -s
In file included from ../Annullo_shared/DecodedInfo.cpp:1:
../Annullo_shared/DecodedInfo.h:20: 'vector' is used as a type, but is not=
defined as a type.
../Annullo_shared/DecodedInfo.h:21: 'vector' is used as a type, but is not=
defined as a type.
../Annullo_shared/DecodedInfo.h:38: type specifier omitted for parameter=
`vector<double>'
../Annullo_shared/DecodedInfo.h:38: parse error before `,' token
../Annullo_shared/DecodedInfo.h:57: parse error before `)' token
../Annullo_shared/DecodedInfo.h:58: parse error before `)' token
../Annullo_shared/DecodedInfo.cpp:23: type specifier omitted for parameter=
`vector<double>'
../Annullo_shared/DecodedInfo.cpp:23: parse error before `,' token
../Annullo_shared/DecodedInfo.cpp:57: syntax error before `::' token
../Annullo_shared/DecodedInfo.cpp:58: syntax error before `::' token
mingw32-make.exe: *** [../Annullo_shared/DecodedInfo.o] Error 1
Execution terminated
------Header File------
#ifndef DECODED_INFO_H
#define DECODED_INFO_H
#include <vector>
class DecodedInfo{
private:
int type;
int searchDepth;
int black;
int white;
int result;
int totalGamesPlayed;
double totalGameAverage;
double playingTime;
int nbrOfTotalGames;
int nbrOfConnections;
double version;
vector<double> blackWeights;
vector<double> whiteWeights;
public:
DecodedInfo(int type,
int black,
int white,
int result,
double playingTime);
DecodedInfo(int type,
int searchResult,
int black,
int white,
int totalGamesPlayed,
double totalGameAverage,
int nbrOfTotalGames,
int nbrOfConnections,
vector<double> blackWeights,
vector<double> whiteWeights);
DecodedInfo(int type,
double version);
~DecodedInfo();
int getType();
int getSearchDepth();
int getBlack();
int getWhite();
int getResult();
int getTotalGamesPlayed();
double getTotalGameAverage();
double getPlayingTime();
int getNbrOfTotalGames();
int getNbrOfConnections();
double getVersion();
vector<double> getBlackWeights();
vector<double> getWhiteWeights();
};
#endifv
|