Page 1 of 1

MSVC 2005 Linker Errors

Posted: 11.03.2007, 00:42
by yeus
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).

Posted: 11.03.2007, 01:06
by yeus
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)

re

Posted: 01.04.2007, 17:02
by John Van Vliet
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