[SOLVED] Having problem linking current trunk 96xx

Discuss the future of Warzone 2100 with us.
Seismo
Trained
Trained
Posts: 70
Joined: 06 Feb 2010, 17:32

[SOLVED] Having problem linking current trunk 96xx

Post by Seismo »

I try to link current trunk 9654, but get the following linker error. This could belong to target.c which was removed some days ago by last svn update. May you have any hints for me?

I am using msvc 2008 pro, thanks in advance.

Code: Select all

1>Verknüpfen...
1>   Bibliothek "D:\Programming\Warzone2100\win32\Debug\Warzone2100-Dbg.lib" und Objekt "D:\Programming\Warzone2100\win32\Debug\Warzone2100-Dbg.exp" werden erstellt.
1>libtheora_static.lib(mmxidct.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__forceCRTManifestCUR".
1>libtheora_static.lib(x86state.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__forceCRTManifestCUR".
1>libtheora_static.lib(dequant.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__forceCRTManifestCUR".
1>libtheora_static.lib(mmxfrag.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__forceCRTManifestCUR".
1>libtheora_static.lib(mmxstate.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__forceCRTManifestCUR".
1>libtheora_static.lib(huffdec.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__forceCRTManifestCUR".
1>libtheora_static.lib(fragment.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__forceCRTManifestCUR".
1>libtheora_static.lib(bitpack.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__forceCRTManifestCUR".
1>libtheora_static.lib(idct1.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__forceCRTManifestCUR".
1>libtheora_static.lib(decode1.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__forceCRTManifestCUR".
1>libtheora_static.lib(state.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__forceCRTManifestCUR".
1>libtheora_static.lib(decinfo.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__forceCRTManifestCUR".
1>libtheora_static.lib(quant1.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__forceCRTManifestCUR".
1>libtheora_static.lib(apiwrapper.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__forceCRTManifestCUR".
1>libtheora_static.lib(decapiwrapper.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__forceCRTManifestCUR".
1>libtheora_static.lib(internal.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__forceCRTManifestCUR".
1>libtheora_static.lib(info.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__forceCRTManifestCUR".
1>D:\Programming\Warzone2100\win32\Debug\Warzone2100-Dbg.exe : fatal error LNK1120: 1 nicht aufgelöste externe Verweise.
1>Das Buildprotokoll wurde unter "file://d:\Programming\Warzone2100\win32\Debug\BuildLog.htm" gespeichert.
1>Warzone2100 - 18 Fehler, 0 Warnung(en)
========== Erstellen: 0 erfolgreich, Fehler bei 1, 12 aktuell, 0 übersprungen ==========
Last edited by Seismo on 10 Feb 2010, 11:05, edited 1 time in total.
i-NoD
Code contributor
Code contributor
Posts: 318
Joined: 30 Nov 2008, 00:42
Location: In the middle of nowhere

Re: Having problem compiling current trunk 9654

Post by i-NoD »

Where did you got your libtheora? Is it from devpkg or your built it by yourself?
If it's selfmade try using one from the devpkg, if not try this:
Force the linker to include __forceCRTManifestCUR with this option:

/INCLUDE:__forceCRTManifestCUR

Or go to Linker->Input in the Visual Studio project properties and add __forceCRTManifestCUR to the "Force Symbol References" field.

Note that this workaround will cause link errors for the RTM version of VS2008, since that CRT doesn't expose __forceCRTManifestCUR.
Seismo
Trained
Trained
Posts: 70
Joined: 06 Feb 2010, 17:32

Re: Having problem compiling current trunk 9654

Post by Seismo »

Thank You. I missed to build and use the new libs, that was my fault.

Just for your Info. I tried the /Include:... but get then

Code: Select all

13>LINK : error LNK2001: Nicht aufgelöstes externes Symbol "/INCLUDE:__forceCRTManifestCUR".
13>D:\Programming\Warzone2100\win32\Release\Warzone2100.exe : fatal error LNK1120: 1 nicht aufgelöste externe Verweise.
13>Das Buildprotokoll wurde unter "file://d:\Programming\Warzone2100\win32\Release\BuildLog.htm" gespeichert.
13>Warzone2100 - 2 Fehler, 93 Warnung(en)
========== Alles neu erstellen: 12 erfolgreich, Fehler bei 1, 0 übersprungen ==========
After deleting the force command everything builds now as expected

Code: Select all

13>Warzone2100 - 0 Fehler, 102 Warnung(en)
========== Alles neu erstellen: 13 erfolgreich, Fehler bei 0, 0 übersprungen ==========
but sad too see so much warnings...