MSVC 2005 Linker Errors

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
yeus
Posts: 9
Joined: 11.03.2007
With us: 17 years 8 months

MSVC 2005 Linker Errors

Post #1by yeus » 11.03.2007, 00:42

Ok.. Now i've gotten pretty far by myself, so, at the current stage I downloaded current CVS tree, and converted the *.dsw file into a .Net *.sln-projectfile. everything works fine so far, I managed to link with all the important libraries and work around the libc.lib "bug".

There is only 2 Errors left now:

Code: Select all

1>CVTRES : fatal error CVT1100: duplicate resource.  type:MANIFEST, name:1, language:0x0409
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt


Any idea, what this is all about? I Think the 2nd Error is caused by the first one (Although I am not sure about that).

Topic author
yeus
Posts: 9
Joined: 11.03.2007
With us: 17 years 8 months

Post #2by yeus » 11.03.2007, 01:06

ok.. forgive me.. I shouldn't give up so fast.

here is the solution:

In: Projectproperties->Configuration properties->Manifest Tool->Input and Output

change "Embed Manifest" from "No" to "Yes".

Now I got another Problem, because 98 linker Errors reappeared :).

Here are some examples:

Code: Select all

Error   80   error LNK2001: unresolved external symbol "class ColorTemperatureTable * __cdecl GetStarColorTable(enum ColorTableType)" (?GetStarColorTable@@YAPAVColorTemperatureTable@@W4ColorTableType@@@Z)   cel_engine.lib


Code: Select all

Error   60   error LNK2001: unresolved external symbol __imp__libintl_sprintf   cel_engine.lib


Code: Select all

Error   131   error LNK2019: unresolved external symbol "public: void __thiscall CelestiaGLProgram::setAtmosphereParameters(class Atmosphere const &,float,float)" (?setAtmosphereParameters@CelestiaGLProgram@@QAEXABVAtmosphere@@MM@Z) referenced in function "public: virtual void __thiscall GLSL_RenderContext::makeCurrent(class Mesh::Material const &)" (?makeCurrent@GLSL_RenderContext@@UAEXABVMaterial@Mesh@@@Z)   cel_engine.lib


I'm not very familiiar with the sourcecode... Do those linker errors maybe have something todo with the project dependencies?

greetings, Tom (thx for any help, If I get the MSVC 2005 thing to work i'll post the project files here)

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

re

Post #3by John Van Vliet » 01.04.2007, 17:02

hi have you looked hear
A primer for new C++ developer volunteers on Win XP
http://www.celestiaproject.net/forum/viewtopic.php?t=3637
and
Free Windows-based compiling for Celestia.
http://www.celestiaproject.net/forum/viewtopic.php?t=6255


Return to “Development”