Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / 1>MSVCRTD.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)

Author
Message
Chris R
14
Years of Service
User Offline
Joined: 30th Aug 2010
Location:
Posted: 7th Sep 2010 18:31
Im sorry if this is frequently asked but I could not find any useful answers in the forums.

I keep getting this error whenever I try to compile my program:
1>MSVCRTD.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)

How can I fix this?
Thanks
Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 8th Sep 2010 06:55
Add 'libcmt' to the 'Ignore Specific Library' list, which is located here:

(Sorry if some of these are wrong - this is from memory)

Project->(Project Name) Properties...->Configuration Properties->Linker->Input

“C++ : Where friends have access to your private members.”
-Gavin Russell Baker
Chris R
14
Years of Service
User Offline
Joined: 30th Aug 2010
Location:
Posted: 8th Sep 2010 15:17
By doing that I now have all these errors:

1>convx.lib(ConvX.obj) : error LNK2001: unresolved external symbol __invalid_parameter_noinfo
1>convmd3.lib(ConvMD3.obj) : error LNK2001: unresolved external symbol __invalid_parameter_noinfo
1>convmdl.lib(ConvMDL.obj) : error LNK2001: unresolved external symbol __invalid_parameter_noinfo
1>basic3D.lib(ProcessHSR.obj) : error LNK2001: unresolved external symbol __invalid_parameter_noinfo
1>world.lib(Patch.obj) : error LNK2001: unresolved external symbol __invalid_parameter_noinfo
1>system.lib(CSystemC.obj) : error LNK2001: unresolved external symbol __invalid_parameter_noinfo
1>system.lib(dxdiaginfo.obj) : error LNK2001: unresolved external symbol __invalid_parameter_noinfo
1>basic3D.lib(NVMeshMenderD3DX.obj) : error LNK2001: unresolved external symbol __invalid_parameter_noinfo
1>basic3D.lib(CBSPTree.obj) : error LNK2001: unresolved external symbol __invalid_parameter_noinfo
1>basic3D.lib(CSG.obj) : error LNK2001: unresolved external symbol __invalid_parameter_noinfo
1>basic3D.lib(CCompiler.obj) : error LNK2019: unresolved external symbol __invalid_parameter_noinfo referenced in function "public: void __thiscall cCompiler::Release(void)" (?Release@cCompiler@@QAEXXZ)
1>display.lib(CGfxC.obj) : error LNK2001: unresolved external symbol __invalid_parameter_noinfo
1>basic3D.lib(DBOFormat.obj) : error LNK2001: unresolved external symbol __invalid_parameter_noinfo
1>basic3D.lib(Universe.obj) : error LNK2001: unresolved external symbol __invalid_parameter_noinfo
1>basic3D.lib(cLightMaps.obj) : error LNK2001: unresolved external symbol __invalid_parameter_noinfo
1>Debug\Dark Invaders.exe : fatal error LNK1120: 1 unresolved externals

Thanks
Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 9th Sep 2010 05:20
Alright, remove 'libcmt' from the list and add 'msvcrtd' and see if that works.

“C++ : Where friends have access to your private members.”
-Gavin Russell Baker
Cuddle Bunniezzz 12
15
Years of Service
User Offline
Joined: 14th Jan 2009
Location: Buffalo, NY
Posted: 9th Sep 2010 06:18 Edited at: 9th Sep 2010 06:29
Can I ask, are you using any extra libs other than DarkGDK?

Another fix could be going into the project settings and change "Code Generation." to MT/ Multithreaded and the subsystems to WINDOWS:WINDOWS.

http://ref.darkgdk.us/ <- Online DarkGDK Refernece. More content coming soon.
Faker1089
15
Years of Service
User Offline
Joined: 30th Aug 2009
Location: My own little world....
Posted: 9th Sep 2010 06:22
I had this problem at one point in time and I think it was because I had a different DirectX SDK installed along with the August 2007 version. I would try uninstalling the SDK and maybe even Visual Studio and reinstall both of them making sure that you have the August 2007 SDK installed. You can even try getting the 7.4 upgrade to DarkGDK as well.
Chris R
14
Years of Service
User Offline
Joined: 30th Aug 2010
Location:
Posted: 9th Sep 2010 13:06
Thank you, adding msvcrtd to the list solved the problem and it now runs with no errors or warnings.

Login to post a reply

Server time is: 2024-11-19 18:32:21
Your offset time is: 2024-11-19 18:32:21