Author Topic: Strange problem  (Read 2280 times)

Batrox

  • Guest
Strange problem
« on: 18 January 2006, 01:11:56 »
Hello

i've try to compil Glest on Visual c++ .net 2003 and i've a strange error in the linking process !
Can anyone help me please :


   

e-dition des liens en cours...
libcpmtd.lib(xlock.obj) : error LNK2005: "public: __thiscall std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QAE@H@Z) de-ja-- de-fini(e) dans GlestLib.lib(properties.obj)
libcpmtd.lib(xlock.obj) : error LNK2005: "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) de-ja-- de-fini(e) dans GlestLib.lib(properties.obj)
LINK : warning LNK4098: conflit entre la bibliothèque par de-faut 'LIBCD' et les autres bibliothèques ; utilisez /NODEFAULTLIB:library
LINK : warning LNK4098: conflit entre la bibliothèque par de-faut 'LIBCMT' et les autres bibliothèques ; utilisez /NODEFAULTLIB:library
GlestLib.lib(factory_repository.obj) : error LNK2019: symbole externe non re-solu "public: __thiscall Shared::Sound::Ds8::SoundPlayerDs8::SoundPlayerDs8(void)" (??0SoundPlayerDs8@Ds8@Sound@Shared@@QAE@XZ) re-fe-rence- dans la fonction "public: virtual class Shared::Sound::SoundPlayer * __thiscall Shared::Sound::Ds8::SoundFactoryDs8::newSoundPlayer(void)" (?newSoundPlayer@SoundFactoryDs8@Ds8@Sound@Shared@@UAEPAVSoundPlayer@34@XZ)
Debug/GlestSrc.exe : fatal error LNK1120: 1 externes non re-solus

thx for your help
« Last Edit: 1 January 1970, 00:00:00 by Batrox »

Batrox

  • Guest
(No subject)
« Reply #1 on: 18 January 2006, 01:12:48 »
i added /NODEFAULTLIB:"LIBCMT.lib" and /NODEFAULTLIB:"LIBCD.lib"  
but i still have

e-dition des liens en cours...
libcpmtd.lib(xlock.obj) : error LNK2005: "public: __thiscall std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QAE@H@Z) de-ja-- de-fini(e) dans GlestLib.lib(properties.obj)
libcpmtd.lib(xlock.obj) : error LNK2005: "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) de-ja-- de-fini(e) dans GlestLib.lib(properties.obj)
GlestLib.lib(factory_repository.obj) : error LNK2019: symbole externe non re-solu "public: __thiscall Shared::Sound::Ds8::SoundPlayerDs8::SoundPlayerDs8(void)" (??0SoundPlayerDs8@Ds8@Sound@Shared@@QAE@XZ) re-fe-rence- dans la fonction "public: virtual class Shared::Sound::SoundPlayer * __thiscall Shared::Sound::Ds8::SoundFactoryDs8::newSoundPlayer(void)" (?newSoundPlayer@SoundFactoryDs8@Ds8@Sound@Shared@@UAEPAVSoundPlayer@34@XZ)
Debug/GlestSrc.exe : fatal error LNK1120: 1 externes non re-solus
« Last Edit: 1 January 1970, 00:00:00 by Batrox »

Batrox

  • Guest
(No subject)
« Reply #2 on: 18 January 2006, 02:02:09 »
well! i corrected my mistake alone :)
« Last Edit: 1 January 1970, 00:00:00 by Batrox »

zhuaple

  • Guest
(No subject)
« Reply #3 on: 19 February 2006, 17:27:22 »
How did you fix it? i have the same problem:(

GlestSrc error LNK2019: unresolved external symbol "public: __thiscall Shared::Sound::Ds8::SoundPlayerDs8::SoundPlayerDs8(void)" (??0SoundPlayerDs8@Ds8@Sound@Shared@@QAE@XZ) referenced in function "public: virtual class Shared::Sound::SoundPlayer * __thiscall Shared::Sound::Ds8::SoundFactoryDs8::newSoundPlayer(void)" (?newSoundPlayer@SoundFactoryDs8@Ds8@Sound@Shared@@UAEPAVSoundPlayer@34@XZ)
« Last Edit: 1 January 1970, 00:00:00 by zhuaple »