Unresolved externals.

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
diogo

Unresolved externals.

Post #1by diogo » 03.03.2002, 13:15

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 :?:

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Post #2by chris » 05.03.2002, 00:34

Oops . . . there are a couple modules missing from the make files. I modified them locally and forgot to check in. Try updating again and you should get the make file changes.

--Chris

Topic author
diogo

Nope...

Post #3by diogo » 07.03.2002, 01:57

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.

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Nope...

Post #4by chris » 08.03.2002, 17:31

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

Rassilon
Posts: 1887
Joined: 29.01.2002
With us: 22 years 9 months
Location: Altair

Post #5by Rassilon » 08.03.2002, 20:50

What version of Visual Studio are you using?
I'm trying to teach the cavemen how to play scrabble, its uphill work. The only word they know is Uhh and they dont know how to spell it!

Topic author
diogo

Version of visual Studio.

Post #6by diogo » 08.03.2002, 22:22

6.0

igorborgo
Posts: 11
Joined: 23.04.2007
With us: 17 years 7 months
Location: Rio de Janeiro, Brasil

Post #7by igorborgo » 05.03.2008, 03:12

Hi,

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


Return to “Development”