Bug 206997 - kstars is not compileable with msvc
Summary: kstars is not compileable with msvc
Status: RESOLVED FIXED
Alias: None
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Akarsh Simha
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-10 21:11 UTC by Christian Ehrlicher
Modified: 2009-09-14 23:19 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Ehrlicher 2009-09-10 21:11:17 UTC
Version:            (using Devel)
Compiler:          msvc2005 
OS:                MS Windows
Installed from:    Compiled sources

Here the output:

ksplanetbase.obj : error LNK2005: "protected: static __int64 const KSPlanetBase::UID_SOL_BIGOBJ" (?UID_SOL_BIGOBJ@KSPlanetBase@@1_JB) ist bereits in kstars_auto
moc.obj definiert.
ksplanetbase.obj : error LNK2005: "protected: static __int64 const KSPlanetBase::UID_SOL_ASTEROID" (?UID_SOL_ASTEROID@KSPlanetBase@@1_JB) ist bereits in kstars_
automoc.obj definiert.
ksplanetbase.obj : error LNK2005: "protected: static __int64 const KSPlanetBase::UID_SOL_COMET" (?UID_SOL_COMET@KSPlanetBase@@1_JB) ist bereits in kstars_automo
c.obj definiert.
skyobject.obj : error LNK2005: "public: static __int64 const SkyObject::UID_STAR" (?UID_STAR@SkyObject@@2_JB) ist bereits in kstars_automoc.obj definiert.
skyobject.obj : error LNK2005: "public: static __int64 const SkyObject::UID_GALAXY" (?UID_GALAXY@SkyObject@@2_JB) ist bereits in kstars_automoc.obj definiert.
skyobject.obj : error LNK2005: "public: static __int64 const SkyObject::UID_DEEPSKY" (?UID_DEEPSKY@SkyObject@@2_JB) ist bereits in kstars_automoc.obj definiert.

skyobject.obj : error LNK2005: "public: static __int64 const SkyObject::UID_SOLARSYS" (?UID_SOLARSYS@SkyObject@@2_JB) ist bereits in kstars_automoc.obj definier
t.
skyobject.obj : error LNK2005: "public: static __int64 const SkyObject::invalidUID" (?invalidUID@SkyObject@@2_JB) ist bereits in kstars_automoc.obj definiert.

--------------------------------------------------
msvc simply doesn't like the "static const UID UID_SOL_BIGOBJ   = 0;" and others in the header :(
Comment 1 Christian Ehrlicher 2009-09-10 21:11:44 UTC
Windows-only problem I guess
Comment 2 Akarsh Simha 2009-09-14 15:46:21 UTC
Hi

If I am not wrong, Casper probably fixed this in SVN commits 1022811 and 1022913. Does it work? Should this bug be closed?

Regards
Akarsh
Comment 3 Ralf Habacker 2009-09-14 21:30:34 UTC
I tried compiling kdeedu with kstars from trunk. kstars had no compile problems instead kalgebra could not be compiled.
Comment 4 Christian Ehrlicher 2009-09-14 21:50:55 UTC
@Ralf. svn up plz. I fixed them some minutes ago (but hey - didn't i heard from others that we've no problems and bugs on windows? Here you see the realtiy... :( )
Comment 5 Ralf Habacker 2009-09-14 22:28:51 UTC
@Christian: Will the nightly build service help in this area ?
Comment 6 Christian Ehrlicher 2009-09-14 23:19:35 UTC
I don't think so - but this is not the topic of the bug and should maybe discussed elsewhere.