Greetings.
I have just updated my Celestia code via CVS and when compiling it I get some unresolved externals on the linking stage, namely:
Linking...
winmain.obj : error LNK2001: unresolved external symbol "void __cdecl AddButtonDefaultStyle(struct HWND__ *)" (?AddButtonDefaultStyle@@YAXPAUHWND__@@@Z)
winmain.obj : error LNK2001: unresolved external symbol "void __cdecl RemoveButtonDefaultStyle(struct HWND__ *)" (?RemoveButtonDefaultStyle@@YAXPAUHWND__@@@Z)
winmain.obj : error LNK2001: unresolved external symbol "void __cdecl CenterWindow(struct HWND__ *,struct HWND__ *)" (?CenterWindow@@YAXPAUHWND__@@0@Z)
winstarbrowser.obj : error LNK2001: unresolved external symbol "void __cdecl SetMouseCursor(char const *)" (?SetMouseCursor@@YAXPBD@Z)
cel_engine.lib(render.obj) : error LNK2001: unresolved external symbol "public: class Texture * __thiscall MultiResTexture::find(unsigned int)" (?find@MultiResTexture@@QAEPAVTexture@@I@Z)
cel_engine.lib(render.obj) : error LNK2001: unresolved external symbol "public: __thiscall MultiResTexture::MultiResTexture(int,int,int)" (??0MultiResTexture@@QAE@HHH@Z)
cel_engine.lib(render.obj) : error LNK2001: unresolved external symbol "public: __thiscall MultiResTexture::MultiResTexture(void)" (??0MultiResTexture@@QAE@XZ)
cel_engine.lib(body.obj) : error LNK2001: unresolved external symbol "public: __thiscall MultiResTexture::MultiResTexture(void)" (??0MultiResTexture@@QAE@XZ)
cel_engine.lib(solarsys.obj) : error LNK2001: unresolved external symbol "public: __thiscall MultiResTexture::MultiResTexture(void)" (??0MultiResTexture@@QAE@XZ)
cel_engine.lib(solarsys.obj) : error LNK2001: unresolved external symbol "public: void __thiscall MultiResTexture::setTexture(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int)" (?setTexture
@MultiResTexture@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@I@Z)
cel_engine.lib(solarsys.obj) : error LNK2001: unresolved external symbol "public: void __thiscall MultiResTexture::setTexture(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,float,unsigned int)" (?setT
exture@MultiResTexture@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MI@Z)
cel_engine.lib(solarsys.obj) : error LNK2001: unresolved external symbol "public: __thiscall MultiResTexture::MultiResTexture(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0MultiResTexture@@QAE@
ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
cel_engine.lib(customorbit.obj) : error LNK2001: unresolved external symbol "class Orbit * __cdecl CreateVSOP87Orbit(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?CreateVSOP87Orbit@@YAPAVOrbit@@A
BV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
../../Celestia.exe : fatal error LNK1120: 11 unresolved externals
Error executing link.exe.
I wonder if anyone could shed light on this for me.
Thanks
Diogo
Unresolved externals.
-
- Site Admin
- Posts: 4211
- Joined: 28.01.2002
- With us: 22 years 9 months
- Location: Seattle, Washington, USA
Nope...
diogo wrote:Sorry, but I updated my code, even checked out a new one, and still get the same errors... I am building celestia under Windows XP, if that helps.
I?d be glad if you could help me out in this again.
Thanx
Diogo.
I forget . . . are you building in Visual Studio or from the command line?
If you build from the command line, try updating everything, doing a 'makerelease clean', and then a makerelease. Everything should be in CVS now . . . I'm able to build Celestia on my laptop using makefiles checked out from CVS.
If you're building in Visual Studio, it's possible that the project files are slightly out of date. I'll look into it . . .
--Chris
Hi,
I try to compiling Celestia CVS in command line (Wiki steps). Some errors appears.
That??s the end of the compile log:
I wonder if anyone could shed light on this for me.
Thanks for All
Igor Borgo
I try to compiling Celestia CVS in command line (Wiki steps). Some errors appears.
That??s the end of the compile log:
Code: Select all
...
cel_engine.lib(rendcontext.obj) : error LNK2001: unresolved external symbol __imp__glMaterialfv@12
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol __imp__glColor4fv@4 referenced in function "void __cdecl renderModelDefault(class Model *,struct RenderInfo const &,bool)" (?renderModelDefault@@YAXPAVModel@@ABURenderInfo@@_N@Z)
cel_engine.lib(nebula.obj) : error LNK2001: unresolved external symbol __imp__glColor4fv@4
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol __imp__glFogf@8 referenced in function "void __cdecl renderSphere_Combiners_VP(struct RenderInfo const &,class LightingState const &,class Frustum const &,class GLContext const &)" (?renderSphere_Combiners_VP@@YAXABURenderInfo@@ABVLightingState@@ABVFrustum@@ABVGLContext@@@Z)
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol __imp__glFogi@8 referenced in function "void __cdecl renderSphere_Combiners_VP(struct RenderInfo const &,class LightingState const &,class Frustum const &,class GLContext const &)" (?renderSphere_Combiners_VP@@YAXABURenderInfo@@ABVLightingState@@ABVFrustum@@ABVGLContext@@@Z)
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol __imp__glFogfv@8 referenced in function "void __cdecl renderSphere_Combiners_VP(struct RenderInfo const &,class LightingState const &,class Frustum const &,class GLContext const &)" (?renderSphere_Combiners_VP@@YAXABURenderInfo@@ABVLightingState@@ABVFrustum@@ABVGLContext@@@Z)
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol __imp__glTexGeni@12 referenced in function "void __cdecl renderShadowedModelDefault(class Model *,struct RenderInfo const &,class Frustum const &,float *,float *,class Vector3<float> const &,bool,class GLContext const &)" (?renderShadowedModelDefault@@YAXPAVModel@@ABURenderInfo@@ABVFrustum@@PAM3ABV?$Vector3@M@@_NABVGLContext@@@Z)
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol __imp__glDrawElements@16 referenced in function "private: void __thiscall Renderer::renderEllipsoidAtmosphere(class Atmosphere const &,class Point3<float>,class Quaternion<float> const &,class Vector3<float>,class Vector3<float> const &,class Color,float,bool)" (?renderEllipsoidAtmosphere@Renderer@@AAEXABVAtmosphere@@V?$Point3@M@@ABV?$Quaternion@M@@V?$Vector3@M@@ABV5@VColor@@M_N@Z)
cel_engine.lib(lodspheremesh.obj) : error LNK2001: unresolved external symbol __imp__glDrawElements@16
cel_engine.lib(rendcontext.obj) : error LNK2001: unresolved external symbol __imp__glDrawElements@16
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol __imp__glMultMatrixf@4 referenced in function "void __cdecl glMatrix(class Matrix4<float> const &)" (?glMatrix@@YAXABV?$Matrix4@M@@@Z)
cel_engine.lib(galaxy.obj) : error LNK2001: unresolved external symbol __imp__glMultMatrixf@4
cel_engine.lib(nebula.obj) : error LNK2001: unresolved external symbol __imp__glMultMatrixf@4
cel_engine.lib(axisarrow.obj) : error LNK2001: unresolved external symbol __imp__glMultMatrixf@4
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol _gluProject@48 referenced in function "private: void __thiscall Renderer::renderLocations(class std::vector<class Location *,class std::allocator<class Location *> > const &,class Quaternion<float> const &,class Point3<double> const &,class Quaternion<double> const &,float)" (?renderLocations@Renderer@@AAEXABV?$vector@PAVLocation@@V?$allocator@PAVLocation@@@std@@@std@@ABV?$Quaternion@M@@ABV?$Point3@N@@ABV?$Quaternion@N@@M@Z)
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol __imp__glGetDoublev@8 referenced in function "private: void __thiscall Renderer::renderLocations(class std::vector<class Location *,class std::allocator<class Location *> > const &,class Quaternion<float> const &,class Point3<double> const &,class Quaternion<double> const &,float)" (?renderLocations@Renderer@@AAEXABV?$vector@PAVLocation@@V?$allocator@PAVLocation@@@std@@@std@@ABV?$Quaternion@M@@ABV?$Point3@N@@ABV?$Quaternion@N@@M@Z)
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol __imp__glDepthFunc@4 referenced in function "public: bool __thiscall Renderer::init(class GLContext *,int,int,struct Renderer::DetailOptions &)" (?init@Renderer@@QAE_NPAVGLContext@@HHAAUDetailOptions@1@@Z)
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol __imp__glCullFace@4 referenced in function "public: bool __thiscall Renderer::init(class GLContext *,int,int,struct Renderer::DetailOptions &)" (?init@Renderer@@QAE_NPAVGLContext@@HHAAUDetailOptions@1@@Z)
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol __imp__glLightModeli@8 referenced in function "public: bool __thiscall Renderer::init(class GLContext *,int,int,struct Renderer::DetailOptions &)" (?init@Renderer@@QAE_NPAVGLContext@@HHAAUDetailOptions@1@@Z)
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol _gluPerspective@32 referenced in function "public: virtual void __thiscall DSORenderer::process(class DeepSkyObject * const &,double,float)" (?process@DSORenderer@@UAEXABQAVDeepSkyObject@@NM@Z)
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol __imp__glPolygonOffset@8 referenced in function "private: void __thiscall Renderer::renderObject(class Point3<float>,float,double,class Quaternion<float>,float,float,struct Renderer::RenderProperties &,class LightingState const &)" (?renderObject@Renderer@@AAEXV?$Point3@M@@MNV?$Quaternion@M@@MMAAURenderProperties@1@ABVLightingState@@@Z)
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol __imp__glFrontFace@4 referenced in function "private: void __thiscall Renderer::renderObject(class Point3<float>,float,double,class Quaternion<float>,float,float,struct Renderer::RenderProperties &,class LightingState const &)" (?renderObject@Renderer@@AAEXV?$Point3@M@@MNV?$Quaternion@M@@MMAAURenderProperties@1@ABVLightingState@@@Z)
cel_engine.lib(renderglsl.obj) : error LNK2001: unresolved external symbol __imp__glFrontFace@4
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol __imp__glDepthRange@16 referenced in function "public: void __thiscall Renderer::render(class Observer const &,class Universe const &,float,class Selection const &)" (?render@Renderer@@QAEXABVObserver@@ABVUniverse@@MABVSelection@@@Z)
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol __imp__glPolygonMode@8 referenced in function "public: void __thiscall Renderer::render(class Observer const &,class Universe const &,float,class Selection const &)" (?render@Renderer@@QAEXABVObserver@@ABVUniverse@@MABVSelection@@@Z)
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol __imp__glTexEnvf@12 referenced in function "public: void __thiscall Renderer::render(class Observer const &,class Universe const &,float,class Selection const &)" (?render@Renderer@@QAEXABVObserver@@ABVUniverse@@MABVSelection@@@Z)
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol __imp__glClear@4 referenced in function "public: void __thiscall Renderer::render(class Observer const &,class Universe const &,float,class Selection const &)" (?render@Renderer@@QAEXABVObserver@@ABVUniverse@@MABVSelection@@@Z)
cel_engine.lib(render.obj) : error LNK2019: unresolved external symbol __imp__glClearColor@16 referenced in function "public: void __thiscall Renderer::render(class Observer const &,class Universe const &,float,class Selection const &)" (?render@Renderer@@QAEXABVObserver@@ABVUniverse@@MABVSelection@@@Z)
cel_engine.lib(texture.obj) : error LNK2019: unresolved external symbol __imp__glGetTexParameterfv@12 referenced in function "bool __cdecl testMaxLevel(void)" (?testMaxLevel@@YA_NXZ)
cel_engine.lib(texture.obj) : error LNK2019: unresolved external symbol _gluBuild2DMipmaps@28 referenced in function "public: __thiscall ImageTexture::ImageTexture(class Image &,enum Texture::AddressMode,enum Texture::MipMapMode)" (??0ImageTexture@@QAE@AAVImage@@W4AddressMode@Texture@@W4MipMapMode@3@@Z)
cel_engine.lib(lodspheremesh.obj) : error LNK2019: unresolved external symbol __imp__glNormalPointer@12 referenced in function "private: void __thiscall LODSphereMesh::renderSection(int,int,int,struct LODSphereMesh::RenderInfo const &)" (?renderSection@LODSphereMesh@@AAEXHHHABURenderInfo@1@@Z)
cel_engine.lib(rendcontext.obj) : error LNK2001: unresolved external symbol __imp__glNormalPointer@12
cel_engine.lib(vertexlist.obj) : error LNK2001: unresolved external symbol __imp__glNormalPointer@12
cel_engine.lib(vertexprog.obj) : error LNK2019: unresolved external symbol __imp__glGetError@0 referenced in function "bool __cdecl LoadNvVertexProgram(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int &)" (?LoadNvVertexProgram@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAI@Z)
cel_engine.lib(fragmentprog.obj) : error LNK2001: unresolved external symbol __imp__glGetError@0
cel_engine.lib(axisarrow.obj) : error LNK2019: unresolved external symbol __imp__glRotatef@16 referenced in function "void __cdecl RenderAxisArrows(class Quaternion<float> const &,float,float)" (?RenderAxisArrows@@YAXABV?$Quaternion@M@@MM@Z)
.\Release\celestia.exe : fatal error LNK1120: 150 unresolved externals
I wonder if anyone could shed light on this for me.
Thanks for All
Igor Borgo