150 unresolved externals

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
igorborgo
Posts: 11
Joined: 23.04.2007
With us: 17 years 1 month
Location: Rio de Janeiro, Brasil

150 unresolved externals

Post #1by igorborgo » 06.03.2008, 16:51

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

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

Post #2by chris » 06.03.2008, 17:40

It looks like the missing symbols are all OpenGL functions. I'm not sure what's happening here--the linker should be complaining about a missing opengl32.lib if that file isn't present. Is it on your system anywhere?

--Chris

Topic author
igorborgo
Posts: 11
Joined: 23.04.2007
With us: 17 years 1 month
Location: Rio de Janeiro, Brasil

Post #3by igorborgo » 06.03.2008, 22:43

Yes,

the file is placed in \Microsoft Visual C++ Toolkit 2003\lib. Is correct?

The compiling problem continues.


Igor Borgo

Topic author
igorborgo
Posts: 11
Joined: 23.04.2007
With us: 17 years 1 month
Location: Rio de Janeiro, Brasil

Post #4by igorborgo » 16.03.2008, 01:35

somebody help?


Igor Borgo.

Brendan
Posts: 296
Joined: 15.07.2003
With us: 20 years 10 months
Location: Bellows Falls, VT
Contact:

Post #5by Brendan » 16.03.2008, 04:31

I got the same problem with linking and the OpenGL library. The PSDK has the include files and the library and the include/gl and lib directories are in the environment.
Specs: 3500 AMD 64, 1GB RAM, PCI Express GeForce 7600 GS with 256MB, Debian Lenny on 250 GB drive, Windows XP Media Center on 250 GB drive

Brendan
Posts: 296
Joined: 15.07.2003
With us: 20 years 10 months
Location: Bellows Falls, VT
Contact:

Re: 150 unresolved externals

Post #6by Brendan » 27.03.2008, 04:34

Had anyone figured out a solution? :?: :?
Specs: 3500 AMD 64, 1GB RAM, PCI Express GeForce 7600 GS with 256MB, Debian Lenny on 250 GB drive, Windows XP Media Center on 250 GB drive

Avatar
cartrite
Posts: 1978
Joined: 15.09.2005
With us: 18 years 8 months
Location: Pocono Mountains, Pennsylvania, USA Greate Grandfother from Irshava, Zakarpattia Oblast Ukraine

Re: 150 unresolved externals

Post #7by cartrite » 27.03.2008, 08:10

Brendan wrote:Had anyone figured out a solution? :?: :?
Which compiler are you using and if it is MS2005 or 2008 are you using the GUI?
cartrite
VivoBook_ASUSLaptop X712JA_S712JA Intel(R) UHD Graphics 8gb ram. Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz, 1190 Mhz, 4 Core(s), 8 Logical Processor(s) 8 GB ram. Running on Windows 11 and OpenSuse 15.4

Avatar
selden
Developer
Posts: 10190
Joined: 04.09.2002
With us: 21 years 8 months
Location: NY, USA

Re: 150 unresolved externals

Post #8by selden » 27.03.2008, 10:08

It suggests to me that the environment variable for the linker's library search list might not be defined correctly. Exactly what are you using for the search lists?

An example for VS2005EE is in the WikiBook at
http://en.wikibooks.org/wiki/Celestia/D ... orm#VS2005
Selden

Brendan
Posts: 296
Joined: 15.07.2003
With us: 20 years 10 months
Location: Bellows Falls, VT
Contact:

Re: 150 unresolved externals

Post #9by Brendan » 28.03.2008, 14:14

Tools->Options->Projects and Solutions->VC++ Directories->Library Files:

C:\Documents and Settings\Brendan\Desktop\CelestiaSVN\celestia\lib
C:\Program Files\Microsoft Platform SDK\Lib
$(VCInstallDir)lib
$(FrameworkSDKDir)lib
$(VCInstallDir)atlmfc\lib
$(VCInstallDir)atlmfc\lib\i386
$(VSInstallDir)
$(VSInstallDir)lib


Properties of celestia project->Configuration Properties->Linker->Additional Library Directories:

"C:\Documents and Settings\Brendan\Desktop\CelestiaSVN\celestia";"C:\Documents and Settings\Brendan\Desktop\CelestiaSVN\celestia\lib";"C:\Program Files\Microsoft Platform SDK\Lib";.\lib

There is an OpenGL32.Lib in C:\Program Files\Microsoft Platform SDK\Lib.
Specs: 3500 AMD 64, 1GB RAM, PCI Express GeForce 7600 GS with 256MB, Debian Lenny on 250 GB drive, Windows XP Media Center on 250 GB drive

Avatar
cartrite
Posts: 1978
Joined: 15.09.2005
With us: 18 years 8 months
Location: Pocono Mountains, Pennsylvania, USA Greate Grandfother from Irshava, Zakarpattia Oblast Ukraine

Re: 150 unresolved externals

Post #10by cartrite » 28.03.2008, 14:34

Brendan,
It looks as if you are using the GUI. See this post. You may need to have the Microsoft SDK before the VC++ Includes, Libs, and Path.
viewtopic.php?p=98552#p98552
cartrite
VivoBook_ASUSLaptop X712JA_S712JA Intel(R) UHD Graphics 8gb ram. Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz, 1190 Mhz, 4 Core(s), 8 Logical Processor(s) 8 GB ram. Running on Windows 11 and OpenSuse 15.4

Brendan
Posts: 296
Joined: 15.07.2003
With us: 20 years 10 months
Location: Bellows Falls, VT
Contact:

Re: 150 unresolved externals

Post #11by Brendan » 09.04.2008, 14:40

Ok, the platform SDK stuff is before the other lines for executable, include and library. Now I am getting linker errors about libcmt having stuff already defined in msvcrt.

Code: Select all

------ Build started: Project: celestia, Configuration: Release Win32 ------
Linking...
LIBCMT.lib(tidtable.obj) : error LNK2005: __encode_pointer already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(tidtable.obj) : error LNK2005: __decode_pointer already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(invarg.obj) : error LNK2005: __invoke_watson already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(invarg.obj) : error LNK2005: __invalid_parameter_noinfo already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(dosmap.obj) : error LNK2005: __errno already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(setlocal.obj) : error LNK2005: __configthreadlocale already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(setlocal.obj) : error LNK2005: _setlocale already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(crt0dat.obj) : error LNK2005: __amsg_exit already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(crt0dat.obj) : error LNK2005: __initterm_e already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(crt0dat.obj) : error LNK2005: _exit already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(crt0dat.obj) : error LNK2005: __exit already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(crt0dat.obj) : error LNK2005: __cexit already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(mlock.obj) : error LNK2005: __unlock already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(mlock.obj) : error LNK2005: __lock already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(winxfltr.obj) : error LNK2005: __XcptFilter already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(lconv.obj) : error LNK2005: _localeconv already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in MSVCRT.lib(cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in MSVCRT.lib(cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in MSVCRT.lib(cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in MSVCRT.lib(cinitexe.obj)
LIBCMT.lib(hooks.obj) : error LNK2005: "void __cdecl terminate(void)" (?terminate@@YAXXZ) already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(winsig.obj) : error LNK2005: _signal already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(_wctype.obj) : error LNK2005: _iswcntrl already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(atox.obj) : error LNK2005: _atoi already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(errmode.obj) : error LNK2005: ___set_app_type already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(getenv.obj) : error LNK2005: _getenv already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(tolower.obj) : error LNK2005: _tolower already defined in MSVCRT.lib(MSVCR90.dll)
   Creating library C:\Documents and Settings\Brendan\Desktop\CelestiaSVN\celestia\Release\celestia.lib and object C:\Documents and Settings\Brendan\Desktop\CelestiaSVN\celestia\Release\celestia.exp
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
celx.obj : error LNK2019: unresolved external symbol "public: int __thiscall TimelinePhase::release(void)const " (?release@TimelinePhase@@QBEHXZ) referenced in function "public: __thiscall PhaseReference::~PhaseReference(void)" (??1PhaseReference@@QAE@XZ)
celx.obj : error LNK2019: unresolved external symbol "public: class TimelinePhase const * __thiscall Timeline::findPhase(double)const " (?findPhase@Timeline@@QBEPBVTimelinePhase@@N@Z) referenced in function "int __cdecl object_getphase(struct lua_State *)" (?object_getphase@@YAHPAUlua_State@@@Z)
body.obj : error LNK2001: unresolved external symbol "public: class TimelinePhase const * __thiscall Timeline::findPhase(double)const " (?findPhase@Timeline@@QBEPBVTimelinePhase@@N@Z)
celx.obj : error LNK2019: unresolved external symbol "public: bool __thiscall Timeline::includes(double)const " (?includes@Timeline@@QBE_NN@Z) referenced in function "int __cdecl object_getphase(struct lua_State *)" (?object_getphase@@YAHPAUlua_State@@@Z)
body.obj : error LNK2001: unresolved external symbol "public: bool __thiscall Timeline::includes(double)const " (?includes@Timeline@@QBE_NN@Z)
celx.obj : error LNK2019: unresolved external symbol "public: int __thiscall TimelinePhase::addRef(void)const " (?addRef@TimelinePhase@@QBEHXZ) referenced in function "public: __thiscall PhaseReference::PhaseReference(class TimelinePhase const &)" (??0PhaseReference@@QAE@ABVTimelinePhase@@@Z)
celx.obj : error LNK2019: unresolved external symbol "public: class TimelinePhase const * __thiscall Timeline::getPhase(unsigned int)const " (?getPhase@Timeline@@QBEPBVTimelinePhase@@I@Z) referenced in function "int __cdecl object_phases_iter(struct lua_State *)" (?object_phases_iter@@YAHPAUlua_State@@@Z)
solarsys.obj : error LNK2001: unresolved external symbol "public: class TimelinePhase const * __thiscall Timeline::getPhase(unsigned int)const " (?getPhase@Timeline@@QBEPBVTimelinePhase@@I@Z)
celx.obj : error LNK2019: unresolved external symbol "public: unsigned int __thiscall Timeline::phaseCount(void)const " (?phaseCount@Timeline@@QBEIXZ) referenced in function "int __cdecl object_phases_iter(struct lua_State *)" (?object_phases_iter@@YAHPAUlua_State@@@Z)
solarsys.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall Timeline::phaseCount(void)const " (?phaseCount@Timeline@@QBEIXZ)
body.obj : error LNK2019: unresolved external symbol "public: __thiscall Timeline::~Timeline(void)" (??1Timeline@@QAE@XZ) referenced in function "public: void * __thiscall Timeline::`scalar deleting destructor'(unsigned int)" (??_GTimeline@@QAEPAXI@Z)
solarsys.obj : error LNK2001: unresolved external symbol "public: __thiscall Timeline::~Timeline(void)" (??1Timeline@@QAE@XZ)
body.obj : error LNK2019: unresolved external symbol "public: __thiscall FrameTree::~FrameTree(void)" (??1FrameTree@@QAE@XZ) referenced in function "public: void * __thiscall FrameTree::`scalar deleting destructor'(unsigned int)" (??_GFrameTree@@QAEPAXI@Z)
body.obj : error LNK2019: unresolved external symbol "public: __thiscall FrameTree::FrameTree(class Body *)" (??0FrameTree@@QAE@PAVBody@@@Z) referenced in function "public: class FrameTree * __thiscall Body::getOrCreateFrameTree(void)" (?getOrCreateFrameTree@Body@@QAEPAVFrameTree@@XZ)
body.obj : error LNK2019: unresolved external symbol "public: void __thiscall Timeline::markChanged(void)" (?markChanged@Timeline@@QAEXXZ) referenced in function "public: void __thiscall Body::markChanged(void)" (?markChanged@Body@@QAEXXZ)
body.obj : error LNK2019: unresolved external symbol "public: void __thiscall FrameTree::markUpdated(void)" (?markUpdated@FrameTree@@QAEXXZ) referenced in function "public: void __thiscall Body::markUpdated(void)" (?markUpdated@Body@@QAEXXZ)
render.obj : error LNK2001: unresolved external symbol "public: void __thiscall FrameTree::markUpdated(void)" (?markUpdated@FrameTree@@QAEXXZ)
body.obj : error LNK2019: unresolved external symbol "public: double __thiscall Timeline::endTime(void)const " (?endTime@Timeline@@QBENXZ) referenced in function "public: void __thiscall Body::getLifespan(double &,double &)const " (?getLifespan@Body@@QBEXAAN0@Z)
body.obj : error LNK2019: unresolved external symbol "public: double __thiscall Timeline::startTime(void)const " (?startTime@Timeline@@QBENXZ) referenced in function "public: void __thiscall Body::getLifespan(double &,double &)const " (?getLifespan@Body@@QBEXAAN0@Z)
parseobject.obj : error LNK2019: unresolved external symbol "class RotationModel * __cdecl GetCustomRotationModel(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?GetCustomRotationModel@@YAPAVRotationModel@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "class RotationModel * __cdecl CreateRotationModel(class AssociativeArray *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,double)" (?CreateRotationModel@@YAPAVRotationModel@@PAVAssociativeArray@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@N@Z)
render.obj : error LNK2019: unresolved external symbol "public: void __thiscall FrameTree::recomputeBoundingSphere(void)" (?recomputeBoundingSphere@FrameTree@@QAEXXZ) referenced in function "public: void __thiscall Renderer::render(class Observer const &,class Universe const &,float,class Selection const &)" (?render@Renderer@@QAEXABVObserver@@ABVUniverse@@MABVSelection@@@Z)
render.obj : error LNK2019: unresolved external symbol "void __cdecl RenderAxisArrows(class Quaternion<float> const &,float,float)" (?RenderAxisArrows@@YAXABV?$Quaternion@M@@MM@Z) referenced in function "private: void __thiscall Renderer::renderAxes(class Body &,class Point3<float>,float,double,float,float,enum RenderListEntry::RenderableType)" (?renderAxes@Renderer@@AAEXAAVBody@@V?$Point3@M@@MNMMW4RenderableType@RenderListEntry@@@Z)
render.obj : error LNK2019: unresolved external symbol "void __cdecl RenderSunDirectionArrow(class Vector3<float> const &,float,float)" (?RenderSunDirectionArrow@@YAXABV?$Vector3@M@@MM@Z) referenced in function "private: void __thiscall Renderer::renderSunDirection(class Body &,class Point3<float>,float,double,class std::vector<struct LightSource,class std::allocator<struct LightSource> > const &,float,float)" (?renderSunDirection@Renderer@@AAEXAAVBody@@V?$Point3@M@@MNABV?$vector@ULightSource@@V?$allocator@ULightSource@@@std@@@std@@MM@Z)
render.obj : error LNK2019: unresolved external symbol "void __cdecl RenderVelocityArrow(class Vector3<float> const &,float,float)" (?RenderVelocityArrow@@YAXABV?$Vector3@M@@MM@Z) referenced in function "private: void __thiscall Renderer::renderVelocityVector(class Body &,class Point3<float>,float,double,float,float)" (?renderVelocityVector@Renderer@@AAEXAAVBody@@V?$Point3@M@@MNMM@Z)
render.obj : error LNK2019: unresolved external symbol "public: class TimelinePhase * __thiscall FrameTree::getChild(unsigned int)const " (?getChild@FrameTree@@QBEPAVTimelinePhase@@I@Z) referenced in function "private: void __thiscall Renderer::buildRenderLists(class Point3<double> const &,class Frustum const &,class FrameTree const *,class Observer const &,double,class std::vector<struct LightSource,class std::allocator<struct LightSource> > *)" (?buildRenderLists@Renderer@@AAEXABV?$Point3@N@@ABVFrustum@@PBVFrameTree@@ABVObserver@@NPAV?$vector@ULightSource@@V?$allocator@ULightSource@@@std@@@std@@@Z)
render.obj : error LNK2019: unresolved external symbol "public: unsigned int __thiscall FrameTree::childCount(void)const " (?childCount@FrameTree@@QBEIXZ) referenced in function "private: void __thiscall Renderer::buildRenderLists(class Point3<double> const &,class Frustum const &,class FrameTree const *,class Observer const &,double,class std::vector<struct LightSource,class std::allocator<struct LightSource> > *)" (?buildRenderLists@Renderer@@AAEXABV?$Point3@N@@ABVFrustum@@PBVFrameTree@@ABVObserver@@NPAV?$vector@ULightSource@@V?$allocator@ULightSource@@@std@@@std@@@Z)
solarsys.obj : error LNK2019: unresolved external symbol "public: static class TimelinePhase * __cdecl TimelinePhase::CreateTimelinePhase(class Universe &,class Body *,double,double,class ReferenceFrame &,class Orbit &,class ReferenceFrame &,class RotationModel &)" (?CreateTimelinePhase@TimelinePhase@@SAPAV1@AAVUniverse@@PAVBody@@NNAAVReferenceFrame@@AAVOrbit@@2AAVRotationModel@@@Z) referenced in function "class TimelinePhase * __cdecl CreateTimelinePhase(class Body *,class Universe &,class AssociativeArray *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class ReferenceFrame *,bool,bool,double)" (?CreateTimelinePhase@@YAPAVTimelinePhase@@PAVBody@@AAVUniverse@@PAVAssociativeArray@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVReferenceFrame@@_N5N@Z)
solarsys.obj : error LNK2019: unresolved external symbol "public: bool __thiscall Timeline::appendPhase(class TimelinePhase *)" (?appendPhase@Timeline@@QAE_NPAVTimelinePhase@@@Z) referenced in function "class Timeline * __cdecl CreateTimelineFromArray(class Body *,class Universe &,class std::vector<class Value *,class std::allocator<class Value *> > *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class ReferenceFrame *)" (?CreateTimelineFromArray@@YAPAVTimeline@@PAVBody@@AAVUniverse@@PAV?$vector@PAVValue@@V?$allocator@PAVValue@@@std@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@5@PAVReferenceFrame@@@Z)
solarsys.obj : error LNK2019: unresolved external symbol "public: __thiscall Timeline::Timeline(void)" (??0Timeline@@QAE@XZ) referenced in function "class Timeline * __cdecl CreateTimelineFromArray(class Body *,class Universe &,class std::vector<class Value *,class std::allocator<class Value *> > *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class ReferenceFrame *)" (?CreateTimelineFromArray@@YAPAVTimeline@@PAVBody@@AAVUniverse@@PAV?$vector@PAVValue@@V?$allocator@PAVValue@@@std@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@5@PAVReferenceFrame@@@Z)
solarsys.obj : error LNK2019: unresolved external symbol "public: class ReferenceFrame * __thiscall FrameTree::getDefaultReferenceFrame(void)const " (?getDefaultReferenceFrame@FrameTree@@QBEPAVReferenceFrame@@XZ) referenced in function "bool __cdecl CreateTimeline(class Body *,class PlanetarySystem *,class Universe &,class AssociativeArray *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,enum Disposition)" (?CreateTimeline@@YA_NPAVBody@@PAVPlanetarySystem@@AAVUniverse@@PAVAssociativeArray@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@W4Disposition@@@Z)
solarsys.obj : error LNK2019: unresolved external symbol "public: __thiscall FrameTree::FrameTree(class Star *)" (??0FrameTree@@QAE@PAVStar@@@Z) referenced in function "public: __thiscall SolarSystem::SolarSystem(class Star *)" (??0SolarSystem@@QAE@PAVStar@@@Z)
LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
C:\Documents and Settings\Brendan\Desktop\CelestiaSVN\celestia\Release\celestia.exe : fatal error LNK1120: 26 unresolved externals
Build log was saved at "file://c:\Documents and Settings\Brendan\Desktop\CelestiaSVN\celestia\Release\BuildLog.htm"
celestia - 60 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Specs: 3500 AMD 64, 1GB RAM, PCI Express GeForce 7600 GS with 256MB, Debian Lenny on 250 GB drive, Windows XP Media Center on 250 GB drive

Avatar
cartrite
Posts: 1978
Joined: 15.09.2005
With us: 18 years 8 months
Location: Pocono Mountains, Pennsylvania, USA Greate Grandfother from Irshava, Zakarpattia Oblast Ukraine

Re: 150 unresolved externals

Post #12by cartrite » 09.04.2008, 17:08

I remember that happened to me and I think it was because I used the wrong libs. Not sure but try these. http://www.celestiaproject.net/~claurel/celest ... libs-3.zip
Use the celestia.vcproj file to build with these. Set it to Release because Debug is on by default.
cartrite
VivoBook_ASUSLaptop X712JA_S712JA Intel(R) UHD Graphics 8gb ram. Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz, 1190 Mhz, 4 Core(s), 8 Logical Processor(s) 8 GB ram. Running on Windows 11 and OpenSuse 15.4

Topic author
igorborgo
Posts: 11
Joined: 23.04.2007
With us: 17 years 1 month
Location: Rio de Janeiro, Brasil

Re: 150 unresolved externals

Post #13by igorborgo » 10.04.2008, 01:12

I solve my problem,
just little problem witch the file celvars.bat. I don't translate the patches. Thanks for all !!

But I have other question...How I translate the compilation for pt_BR, the atual translation is very poor.

Sorry by the poor english... :(
Thanks again.
Igor Borgo.
"The most beautiful thing we can experience is the mysterious. It is the source of all true art and all science." Albert Einsten

Brendan
Posts: 296
Joined: 15.07.2003
With us: 20 years 10 months
Location: Bellows Falls, VT
Contact:

Re: 150 unresolved externals

Post #14by Brendan » 12.04.2008, 01:27

I got the new include and library files and completely replaced them in the inc and lib directories I made in the Celestia SVN directory except for the spice stuff which wasn't in the 3rd release. I took the spice stuff from the older zip files to put them back. I get the same 26 unresolved externals. Here are the entire sets of paths in tools->options->projects and solutions->VC++ directories:

Executable files
    C:\Program Files\Microsoft Platform SDK\Bin
    $(VCInstallDir)bin
    $(VSInstallDir)Common7\Tools\bin
    $(VSInstallDir)Common7\tools
    $(VSInstallDir)Common7\ide
    $(ProgramFiles)\HTML Help Workshop
    $(FrameworkSDKDir)bin
    $(FrameworkDir)$(FrameworkVersion)
    $(VSInstallDir)
    $(SystemRoot)\SysWow64
    $(FxCopDir)
    $(PATH)

Include files
    C:\Documents and Settings\Brendan\Desktop\CelestiaSVN\celestia\inc
    C:\Program Files\Microsoft Platform SDK\Include
    C:\Program Files\Microsoft Platform SDK\Include\gl
    C:\Program Files\Microsoft Platform SDK\Include\mfc
    $(VCInstallDir)include
    $(FrameworkSDKDir)include
    $(VCInstallDir)atlmfc\include

Library files
    C:\Program Files\Microsoft Platform SDK\Lib
    C:\Documents and Settings\Brendan\Desktop\CelestiaSVN\celestia\lib
    $(VCInstallDir)lib
    $(FrameworkSDKDir)lib
    $(VCInstallDir)atlmfc\lib
    $(VCInstallDir)atlmfc\lib\i386
    $(VSInstallDir)
    $(VSInstallDir)lib
Specs: 3500 AMD 64, 1GB RAM, PCI Express GeForce 7600 GS with 256MB, Debian Lenny on 250 GB drive, Windows XP Media Center on 250 GB drive

Avatar
cartrite
Posts: 1978
Joined: 15.09.2005
With us: 18 years 8 months
Location: Pocono Mountains, Pennsylvania, USA Greate Grandfother from Irshava, Zakarpattia Oblast Ukraine

Re: 150 unresolved externals

Post #15by cartrite » 12.04.2008, 03:27

I have almost the same config but some are in different order and the following folders are not in there. Try removing these. The links for folders are in the make files and not in my VC++ Express.

Code: Select all

C:\Documents and Settings\Brendan\Desktop\CelestiaSVN\celestia\inc
C:\Documents and Settings\Brendan\Desktop\CelestiaSVN\celestia\lib

Here is what mine looks like. Visual C++ 2005 Express Edition.
C:\Program Files\Microsoft Platform SDK\Bin
$(VCInstallDir)bin
$(VSInstallDir)Common7\Tools\bin
$(VSInstallDir)Common7\tools
$(VSInstallDir)Common7\ide
$(ProgramFiles)\HTML Help Workshop
$(FrameworkSDKDir)bin
$(FrameworkDir)$(FrameworkVersion)
$(VSInstallDir)
$(PATH)

C:\Program Files\Microsoft Platform SDK\Include
C:\Program Files\Microsoft Platform SDK\Include\mfc
$(VCInstallDir)include
$(FrameworkSDKDir)include

C:\Program Files\Microsoft Platform SDK\Lib
$(VCInstallDir)lib
$(FrameworkSDKDir)lib
$(VSInstallDir)
$(VSInstallDir)lib

Here is Visual C++ 2008 Express Edition
C:\Program Files\Microsoft Platform SDK\Bin
$(VCInstallDir)bin
$(VSInstallDir)Common7\Tools\bin
$(VSInstallDir)Common7\tools
$(VSInstallDir)Common7\ide
$(ProgramFiles)\HTML Help Workshop
$(FrameworkSDKDir)bin
$(FrameworkDir)$(FrameworkVersion)
$(VSInstallDir)
$(SystemRoot)\SysWow64
$(FxCopDir)
$(PATH)

C:\Program Files\Microsoft Platform SDK\Include
C:\Program Files\Microsoft Platform SDK\Include\mfc
$(VCInstallDir)include
$(VCInstallDir)atlmfc\include
$(FrameworkSDKDir)include

C:\Program Files\Microsoft Platform SDK\Lib
$(VCInstallDir)lib
$(VCInstallDir)atlmfc\lib
$(VCInstallDir)atlmfc\lib\i386
$(FrameworkSDKDir)lib
$(VSInstallDir)
$(VSInstallDir)lib

cartrite
VivoBook_ASUSLaptop X712JA_S712JA Intel(R) UHD Graphics 8gb ram. Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz, 1190 Mhz, 4 Core(s), 8 Logical Processor(s) 8 GB ram. Running on Windows 11 and OpenSuse 15.4

Brendan
Posts: 296
Joined: 15.07.2003
With us: 20 years 10 months
Location: Bellows Falls, VT
Contact:

Re: 150 unresolved externals

Post #16by Brendan » 12.04.2008, 22:31

I made my paths the same as your VC++ 2008 ones and still get the same 26 unresolved externals. Guess something is missing. :?

Brendan
Specs: 3500 AMD 64, 1GB RAM, PCI Express GeForce 7600 GS with 256MB, Debian Lenny on 250 GB drive, Windows XP Media Center on 250 GB drive

Avatar
cartrite
Posts: 1978
Joined: 15.09.2005
With us: 18 years 8 months
Location: Pocono Mountains, Pennsylvania, USA Greate Grandfother from Irshava, Zakarpattia Oblast Ukraine

Re: 150 unresolved externals

Post #17by cartrite » 12.04.2008, 23:03

Could you post your latest error report? The one after you made the changes.
VivoBook_ASUSLaptop X712JA_S712JA Intel(R) UHD Graphics 8gb ram. Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz, 1190 Mhz, 4 Core(s), 8 Logical Processor(s) 8 GB ram. Running on Windows 11 and OpenSuse 15.4

Avatar
cartrite
Posts: 1978
Joined: 15.09.2005
With us: 18 years 8 months
Location: Pocono Mountains, Pennsylvania, USA Greate Grandfother from Irshava, Zakarpattia Oblast Ukraine

Re: 150 unresolved externals

Post #18by cartrite » 13.04.2008, 22:42

Depending on what I'm building, I sometimes get a lot of errors if debug is on. I'm not sure but I think I needed a different win lib package for that. For QT4 anyhow.I haven't built with debug on for quite a while. Today I got a lot of errors with debug on while trying to build QT4 with Visual C++ 2008 Express Edition. The debug mode is on by default in the vcproj file. Try to set it to Release.
cartrite
VivoBook_ASUSLaptop X712JA_S712JA Intel(R) UHD Graphics 8gb ram. Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz, 1190 Mhz, 4 Core(s), 8 Logical Processor(s) 8 GB ram. Running on Windows 11 and OpenSuse 15.4

Brendan
Posts: 296
Joined: 15.07.2003
With us: 20 years 10 months
Location: Bellows Falls, VT
Contact:

Re: 150 unresolved externals

Post #19by Brendan » 15.04.2008, 02:33

It was already set to release. I tried downloading again from SVN and got some conflicted files like the .mak ones. So I deleted the sources and got a new copy and now it compiles fine. Thanks for your help. :D
Specs: 3500 AMD 64, 1GB RAM, PCI Express GeForce 7600 GS with 256MB, Debian Lenny on 250 GB drive, Windows XP Media Center on 250 GB drive


Return to “Development”