Page 1 of 1

Visual Studio 2008EEd can compile celestia with minor tweaks

Posted: 05.12.2007, 16:50
by duds26
Visual Studio 2008 EE (free) can compile celestia with minor adjustments see below, thanks for the information Ajaja.




A free IDE with compiler and for building applications for Windows.

Visual Studio 2008 startpage:
http://www.microsoft.com/express/default.aspx


Here is the link directly to the VS C++ Express Edition:
http://www.microsoft.com/express/vc/

Posted: 05.12.2007, 17:01
by selden
Unfortunately, Celestia is not compatible with VS2008. VS2005 (or VS2003) is required.The necessary changes won't be made until well after Celestia v1.5.0 is officially released. (I learned this when I tried compiling Celestia with the VS2008 beta a few months ago.)

Posted: 21.12.2007, 02:03
by ajtribick
selden wrote:Unfortunately, Celestia is not compatible with VS2008. VS2005 (or VS2003) is required.The necessary changes won't be made until well after Celestia v1.5.0 is officially released. (I learned this when I tried compiling Celestia with the VS2008 beta a few months ago.)


What are the reasons for the incompatibility, do you know?

Posted: 21.12.2007, 02:14
by selden
Sorry, it's been a while since I tried compiling with VS2008. I seem to recall that there were language constructs it didn't like as well as some incompatible runtime library calls. Sort of like the 2003 -> 2005 differences, but many more of them.

Posted: 21.12.2007, 16:57
by symaski62
selden wrote:Sorry, it's been a while since I tried compiling with VS2008. I seem to recall that there were language constructs it didn't like as well as some incompatible runtime library calls. Sort of like the 2003 -> 2005 differences, but many more of them.


yes :wink: VS 2005

re

Posted: 31.12.2007, 08:07
by John Van Vliet
i am still using vs 2002 and don't intend on giving MS more $$$
i like Anjuta and gcc 4.1.2-33 to much

Posted: 28.01.2008, 19:24
by Ajaja
Celestia is compatible with VS2008!!! Just need small fix. In render.cpp and stardb.cpp - functions "operator<(...)" must be in namespace std:

Example, was:

Code: Select all

bool operator< (const StarDatabase::CrossIndexEntry& a,
                const StarDatabase::CrossIndexEntry& b)
{
    return a.catalogNumber < b.catalogNumber;
}


must be:

Code: Select all

namespace std
{
bool operator< (const StarDatabase::CrossIndexEntry& a,
                const StarDatabase::CrossIndexEntry& b)
{
    return a.catalogNumber < b.catalogNumber;
}
}

Posted: 28.01.2008, 20:33
by symaski62
Ajaja wrote:Celestia is compatible with VS2008!!! Just need small fix. In render.cpp and stardb.cpp - functions "operator<(...)" must be in namespace std:

Example, was:

Code: Select all

bool operator< (const StarDatabase::CrossIndexEntry& a,
                const StarDatabase::CrossIndexEntry& b)
{
    return a.catalogNumber < b.catalogNumber;
}


must be:

Code: Select all

namespace std
{
bool operator< (const StarDatabase::CrossIndexEntry& a,
                const StarDatabase::CrossIndexEntry& b)
{
    return a.catalogNumber < b.catalogNumber;
}
}


ok, VS2008 => windows vista et windows XP SP3

Posted: 31.01.2008, 18:40
by duds26
Wel wel wel, look at that.
This is very good, porting to VS2008 won't take as long as I feared afterall. 8)

Posted: 31.01.2008, 18:47
by chris
Ajaja wrote:Celestia is compatible with VS2008!!! Just need small fix. In render.cpp and stardb.cpp - functions "operator<(...)" must be in namespace std:

Example, was:

Code: Select all

bool operator< (const StarDatabase::CrossIndexEntry& a,
                const StarDatabase::CrossIndexEntry& b)
{
    return a.catalogNumber < b.catalogNumber;
}


must be:

Code: Select all

namespace std
{
bool operator< (const StarDatabase::CrossIndexEntry& a,
                const StarDatabase::CrossIndexEntry& b)
{
    return a.catalogNumber < b.catalogNumber;
}
}


Thanks, Ajaja. I just upgraded to VS2008--nice to know there won't be as many troubles as feared.

--Chris

Re: re

Posted: 19.02.2008, 16:58
by duds26
john Van Vliet wrote:i am still using vs 2002 and don't intend on giving MS more $$$
i like Anjuta and gcc 4.1.2-33 to much

You can just download the Visual Studio 2008 Express Edition for free, 0$!!!

re

Posted: 19.02.2008, 20:03
by John Van Vliet
seeing as the 2006 ( free) one was incompatible with vs 7 .net and required me to uninstall vs 7 to run it . i think i will stay with it
also most of the things i build on win xp are linux and mingw gcc is just fine

Posted: 20.02.2008, 16:32
by duds26
If everything is fine, don't change.

If somebody has got vista, everything has to change. :P

Re:

Posted: 03.04.2008, 05:04
by Epimetheus
Ajaja wrote:Celestia is compatible with VS2008!!! Just need small fix. In render.cpp and stardb.cpp - functions "operator<(...)" must be in namespace std:

I'm curious to know how you've set up your celvars.bat file. What version of the Platform SDK and NMAKE are you using?