I'm having another go at tinkering with Celestia. This time I'm trying to compile it using the Code::Blocks IDE and the MinGW compiler. I may be a novice but it's been a bloody nightmare, to put it bluntly, and it still doesn't work. I've encountered numerous problems on the way, some of which have required tinkering with the code in Celestia - obviously this is no good, as soon as I did a CVS fetch I'd have to reapply all my workarounds. It's far more likely that I'm doing something wrong than there being bugs in the code, so has anyone got Celestia to compile on Windows with the MinGW compiler? Painlessly, if possible?
The specific problem I'm stuck on at the moment is in the main Celestia.exe project, in winstarbrowser.cpp on line 190:
Code: Select all
celestia\winstarbrowser.cpp: In function `std::vector<const Star*, std::allocator<const Star*> >* FindStars(const StarDatabase&, Pred, int)':
celestia\winstarbrowser.cpp:190: error: expected `;' before "iter"
Here is the offending line of code (the first line is where the error is flagged):
Code: Select all
for (StarSet::const_iterator iter = firstStars.begin();
iter != firstStars.end(); iter++)
I'm not sure what it's complaining about, StarSet is typedef'd earlier in the function on line 156:
Code: Select all
typedef multiset<const Star*, Pred> StarSet;
Anyone have any idea what this could be about?
I would post a summary of all the other problems I've been having but it's late and there are too many of them to remember/write down right now :0( If I ever get Celestia to compile with MinGW I will start again with a fresh codebase and document the workarounds I had to put in.