Problem for compiling Celestia...

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
Kendrix

Problem for compiling Celestia...

Post #1by Kendrix » 01.06.2002, 16:18

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 @+

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 23 years
Location: Seattle, Washington, USA

Post #2by chris » 01.06.2002, 17:05

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


Return to “Development”