Page 1 of 1

Problem for compiling Celestia...

Posted: 01.06.2002, 16:18
by Kendrix
Hi...

I have reconstruct the Celestia project for VSC++ 6.0 and I got problems with templates... :

for example in starbrowser.cpp :
template<class Pred> static vector<const Star*>*

give me :

error C2143: syntax error : missing ';' before '<'
error C2059: syntax error : ';'
error C2143: syntax error : missing ';' before '<'

in the same kind of things in starbrowser.h :
vector <const Star*>* listStars(unsigned int);

give me :
error C2143: syntax error : missing ';' before '<'
error C2501: 'vector' : missing storage-class or type specifiers
error C2059: syntax error : '<'
error C2238: unexpected token(s) preceding ';'

I'm not good with templates so could you explain me !

Thanx and @+

Posted: 01.06.2002, 17:05
by chris
The line:

using namespace std;

is missing after the #include's in starbrowser.cpp. But the file starbrowser.cpp isn't needed right now for Win32, so you can just omit it from your build.

--Chris