Promblems with CVS-snapshot compiling...

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
PyRo]
Posts: 1
Joined: 24.04.2005
With us: 19 years 7 months

Promblems with CVS-snapshot compiling...

Post #1by PyRo] » 24.04.2005, 00:31

I have problems with compiling last cvs sources of Celestia.

This is log:

Code: Select all

celestiacore.obj : error LNK2019: unresolved external symbol "class ColorTemperatureTable * __cdecl GetStarColorTable(enum ColorTableType)" (?GetStarColorTable@@YAPAVColorTemperatureTable@@W4ColorTableType@@@Z) referenced in function "public: void __thiscall CelestiaCore::charEntered(char const *,int)" (?charEntered@CelestiaCore@@QAEXPBDH@Z)
cel_engine.lib(render.obj) : error LNK2001: unresolved external symbol "class ColorTemperatureTable * __cdecl GetStarColorTable(enum ColorTableType)" (?GetStarColorTable@@YAPAVColorTemperatureTable@@W4ColorTableType@@@Z)
winmain.obj : error LNK2019: unresolved external symbol _wglGetPixelFormatAttribivARB referenced in function "unsigned int __cdecl ChooseBestMSAAPixelFormat(struct HDC__ *,int *,unsigned int,int)" (?ChooseBestMSAAPixelFormat@@YAIPAUHDC__@@PAHIH@Z)
winmain.obj : error LNK2019: unresolved external symbol _wglChoosePixelFormatARB referenced in function "bool __cdecl SetDCPixelFormat(struct HDC__ *)" (?SetDCPixelFormat@@YA_NPAUHDC__@@@Z)
winmain.obj : error LNK2019: unresolved external symbol "bool __cdecl WGLExtensionSupported(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?WGLExtensionSupported@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "bool __cdecl SetDCPixelFormat(struct HDC__ *)" (?SetDCPixelFormat@@YA_NPAUHDC__@@@Z)
winmain.obj : error LNK2019: unresolved external symbol "void __cdecl InitWGLExtensions(struct HINSTANCE__ *)" (?InitWGLExtensions@@YAXPAUHINSTANCE__@@@Z) referenced in function _WinMain@16
libpng1.lib(pngerror.obj) : error LNK2019: unresolved external symbol __imp__fprintf referenced in function _png_default_error
libpng1.lib(pngrutil.obj) : error LNK2001: unresolved external symbol __imp__fprintf
libpng1.lib(pngwutil.obj) : error LNK2019: unresolved external symbol __imp__fprintf referenced in function _png_write_chunk_start
cel_engine.lib(stardb.obj) : error LNK2019: unresolved external symbol "class Orbit * __cdecl CreateOrbit(class PlanetarySystem *,class AssociativeArray *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool)" (?CreateOrbit@@YAPAVOrbit@@PAVPlanetarySystem@@PAVAssociativeArray@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@Z) referenced in function "public: class Star * __thiscall StarDatabase::createStar(unsigned int,class AssociativeArray *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool)" (?createStar@StarDatabase@@QAEPAVStar@@IPAVAssociativeArray@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@Z)
cel_engine.lib(solarsys.obj) : error LNK2001: unresolved external symbol "class Orbit * __cdecl CreateOrbit(class PlanetarySystem *,class AssociativeArray *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool)" (?CreateOrbit@@YAPAVOrbit@@PAVPlanetarySystem@@PAVAssociativeArray@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@Z)
cel_engine.lib(stardb.obj) : error LNK2019: unresolved external symbol "void __cdecl FillinRotationElements(class AssociativeArray *,class RotationElements &)" (?FillinRotationElements@@YAXPAVAssociativeArray@@AAVRotationElements@@@Z) referenced in function "public: class Star * __thiscall StarDatabase::createStar(unsigned int,class AssociativeArray *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool)" (?createStar@StarDatabase@@QAEPAVStar@@IPAVAssociativeArray@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@Z)
cel_engine.lib(solarsys.obj) : error LNK2001: unresolved external symbol "void __cdecl FillinRotationElements(class AssociativeArray *,class RotationElements &)" (?FillinRotationElements@@YAXPAVAssociativeArray@@AAVRotationElements@@@Z)
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol "public: void __thiscall GLProgram::use(void)const " (?use@GLProgram@@QBEXXZ) referenced in function "public: void __thiscall CelestiaGLProgram::use(void)const " (?use@CelestiaGLProgram@@QBEXXZ)
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol "public: bool __thiscall ShaderProperties::usesFragmentLighting(void)const " (?usesFragmentLighting@ShaderProperties@@QBE_NXZ) referenced in function "void __cdecl setLightParameters_GLSL(class CelestiaGLProgram &,class ShaderProperties const &,struct LightingState const &,class Color,class Color)" (?setLightParameters_GLSL@@YAXAAVCelestiaGLProgram@@ABVShaderProperties@@ABULightingState@@VColor@@3@Z)
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol "public: bool __thiscall ShaderProperties::usesShadows(void)const " (?usesShadows@ShaderProperties@@QBE_NXZ) referenced in function "void __cdecl setLightParameters_GLSL(class CelestiaGLProgram &,class ShaderProperties const &,struct LightingState const &,class Color,class Color)" (?setLightParameters_GLSL@@YAXAAVCelestiaGLProgram@@ABVShaderProperties@@ABULightingState@@VColor@@3@Z)
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol "public: class Vec3ShaderParameter & __thiscall Vec3ShaderParameter::operator=(class Vector3<float> const &)" (??4Vec3ShaderParameter@@QAEAAV0@ABV?$Vector3@M@@@Z) referenced in function "void __cdecl setLightParameters_GLSL(class CelestiaGLProgram &,class ShaderProperties const &,struct LightingState const &,class Color,class Color)" (?setLightParameters_GLSL@@YAXAAVCelestiaGLProgram@@ABVShaderProperties@@ABULightingState@@VColor@@3@Z)
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol "public: class FloatShaderParameter & __thiscall FloatShaderParameter::operator=(float)" (??4FloatShaderParameter@@QAEAAV0@M@Z) referenced in function "void __cdecl renderRings_GLSL(class RingSystem &,struct RenderInfo &,struct LightingState const &,float,float,unsigned int,bool,unsigned int)" (?renderRings_GLSL@@YAXAAVRingSystem@@AAURenderInfo@@ABULightingState@@MMI_NI@Z)
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol "public: class Vec4ShaderParameter & __thiscall Vec4ShaderParameter::operator=(class Vector4<float> const &)" (??4Vec4ShaderParameter@@QAEAAV0@ABV?$Vector4@M@@@Z) referenced in function "void __cdecl renderRings_GLSL(class RingSystem &,struct RenderInfo &,struct LightingState const &,float,float,unsigned int,bool,unsigned int)" (?renderRings_GLSL@@YAXAAVRingSystem@@AAURenderInfo@@ABULightingState@@MMI_NI@Z)
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol "public: class Vec3ShaderParameter & __thiscall Vec3ShaderParameter::operator=(class Point3<float> const &)" (??4Vec3ShaderParameter@@QAEAAV0@ABV?$Point3@M@@@Z) referenced in function "void __cdecl renderRings_GLSL(class RingSystem &,struct RenderInfo &,struct LightingState const &,float,float,unsigned int,bool,unsigned int)" (?renderRings_GLSL@@YAXAAVRingSystem@@AAURenderInfo@@ABULightingState@@MMI_NI@Z)
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol "public: class CelestiaGLProgram * __thiscall ShaderManager::getShader(class ShaderProperties const &)" (?getShader@ShaderManager@@QAEPAVCelestiaGLProgram@@ABVShaderProperties@@@Z) referenced in function "void __cdecl renderRings_GLSL(class RingSystem &,struct RenderInfo &,struct LightingState const &,float,float,unsigned int,bool,unsigned int)" (?renderRings_GLSL@@YAXAAVRingSystem@@AAURenderInfo@@ABULightingState@@MMI_NI@Z)
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol "class ShaderManager & __cdecl GetShaderManager(void)" (?GetShaderManager@@YAAAVShaderManager@@XZ) referenced in function "void __cdecl renderRings_GLSL(class RingSystem &,struct RenderInfo &,struct LightingState const &,float,float,unsigned int,bool,unsigned int)" (?renderRings_GLSL@@YAXAAVRingSystem@@AAURenderInfo@@ABULightingState@@MMI_NI@Z)
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol "public: void __thiscall ShaderProperties::setShadowCountForLight(unsigned int,unsigned int)" (?setShadowCountForLight@ShaderProperties@@QAEXII@Z) referenced in function "void __cdecl renderRings_GLSL(class RingSystem &,struct RenderInfo &,struct LightingState const &,float,float,unsigned int,bool,unsigned int)" (?renderRings_GLSL@@YAXAAVRingSystem@@AAURenderInfo@@ABULightingState@@MMI_NI@Z)
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol "public: __thiscall ShaderProperties::ShaderProperties(void)" (??0ShaderProperties@@QAE@XZ) referenced in function "void __cdecl renderRings_GLSL(class RingSystem &,struct RenderInfo &,struct LightingState const &,float,float,unsigned int,bool,unsigned int)" (?renderRings_GLSL@@YAXAAVRingSystem@@AAURenderInfo@@ABULightingState@@MMI_NI@Z)
cel_engine.lib(solarsys.obj) : error LNK2019: unresolved external symbol "bool __cdecl ParseDate(class AssociativeArray *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,double &)" (?ParseDate@@YA_NPAVAssociativeArray@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAN@Z) referenced in function "class Body * __cdecl CreatePlanet(class PlanetarySystem *,class Body *,class AssociativeArray *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,enum Disposition,bool)" (?CreatePlanet@@YAPAVBody@@PAVPlanetarySystem@@PAV1@PAVAssociativeArray@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@W4Disposition@@_N@Z)
.\Release/Celestia.exe : fatal error LNK1120: 20 unresolved externals


How fix it?

RuinLithium
Posts: 2
Joined: 26.04.2005
With us: 19 years 7 months

Post #2by RuinLithium » 26.04.2005, 22:59

Hmm.. I got the cvs source 2 days ago and everything compiled fine. Well almost, having a problem with a jpeg lib.

RuinLithium
Posts: 2
Joined: 26.04.2005
With us: 19 years 7 months

Post #3by RuinLithium » 26.04.2005, 23:26

well jpeglib.h is not in the cvs. Im going to reset VS and recompile it, Adding a dummy jpeglib.h. I doubt that works, but im going to try it anyway.

Im new to c++. Mainly using Celestia as a learning tool for me. I came across it when searching sourceforge the other day. Lucky me :)...

If anyone has a copy of of the correct jpeglib.h file they can email it to me or msg me on msn. Thanks.

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

re

Post #4by John Van Vliet » 04.05.2005, 07:59

the bat file works fine for me
by the way my vs .sln is still broke but the bat works

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #5by selden » 04.05.2005, 10:23

The libraries that Celestia needs for linking under Windows are available in
http://www.shatters.net/celestia/files/winlibs-new.zip
This includes the jpeg and zlib libraries.
Selden


Return to “Development”