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 / Visual express and vista problems

Author
Message
tripleF
18
Years of Service
User Offline
Joined: 4th Jun 2006
Location:
Posted: 1st Mar 2007 01:40
When i try to compile i get thease errors

1>------ Build started: Project: Project2, Configuration: Release Win32 ------
1>Compiling...
1>main.cpp
1>Linking...
1>MSVCRT.lib(MSVCR80.dll) : error LNK2005: _atoi already defined in LIBCMT.lib(atox.obj)
1>MSVCRT.lib(MSVCR80.dll) : error LNK2005: __atoi64 already defined in LIBCMT.lib(atox.obj)
1>MSVCRT.lib(MSVCR80.dll) : error LNK2005: _strchr already defined in LIBCMT.lib(strchr.obj)
1>MSVCRT.lib(MSVCR80.dll) : error LNK2005: _strrchr already defined in LIBCMT.lib(strrchr.obj)
1>MSVCRT.lib(MSVCR80.dll) : error LNK2005: "public: __thiscall std::exception::exception(char const * const &)" (??0exception@std@@QAE@ABQBD@Z) already defined in LIBCMT.lib(stdexcpt.obj)
1>MSVCRT.lib(MSVCR80.dll) : error LNK2005: "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ) already defined in LIBCMT.lib(stdexcpt.obj)
1>MSVCRT.lib(MSVCR80.dll) : error LNK2005: "public: __thiscall std::exception::exception(void)" (??0exception@std@@QAE@XZ) already defined in LIBCMT.lib(stdexcpt.obj)
1>MSVCRT.lib(MSVCR80.dll) : error LNK2005: __invalid_parameter_noinfo already defined in LIBCMT.lib(invarg.obj)
1>MSVCRT.lib(MSVCR80.dll) : error LNK2005: "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z) already defined in LIBCMT.lib(stdexcpt.obj)
1>MSVCRT.lib(MSVCR80.dll) : error LNK2005: _free already defined in LIBCMT.lib(free.obj)
1>MSVCRT.lib(MSVCR80.dll) : error LNK2005: _malloc already defined in LIBCMT.lib(malloc.obj)
1>MSVCRT.lib(MSVCR80.dll) : error LNK2005: __stricmp already defined in LIBCMT.lib(stricmp.obj)
1>MSVCRT.lib(MSVCR80.dll) : error LNK2005: __strnicmp already defined in LIBCMT.lib(strnicmp.obj)
1>MSVCRT.lib(MSVCR80.dll) : error LNK2005: "public: __thiscall std::exception::exception(char const * const &,int)" (??0exception@std@@QAE@ABQBDH@Z) already defined in LIBCMT.lib(stdexcpt.obj)
1>MSVCRT.lib(MSVCR80.dll) : error LNK2005: _memmove already defined in LIBCMT.lib(memmove.obj)
1>MSVCRT.lib(MSVCR80.dll) : error LNK2005: _realloc already defined in LIBCMT.lib(realloc.obj)
1>MSVCRT.lib(MSVCR80.dll) : error LNK2005: _strncmp already defined in LIBCMT.lib(strncmp.obj)
1>MSVCRT.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)
1>MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)
1>LINK : warning LNK4031: no subsystem specified; CONSOLE assumed
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>core.lib(DBDLLCore.obj) : error LNK2019: unresolved external symbol __imp__CoInitialize@4 referenced in function "unsigned long __cdecl InitDisplay(unsigned long,unsigned long,unsigned long,unsigned long,struct HINSTANCE__ *,char *)" (?InitDisplay@@YAKKKKKPAUHINSTANCE__@@PAD@Z)
1>animation.lib(amfilter.obj) : error LNK2001: unresolved external symbol __imp__CoInitialize@4
1>animation.lib(wxutil.obj) : error LNK2001: unresolved external symbol __imp__CoInitialize@4
1>system.lib(dxdiaginfo.obj) : error LNK2001: unresolved external symbol __imp__CoInitialize@4
1>core.lib(DBDLLCore.obj) : error LNK2019: unresolved external symbol __imp__CoUninitialize@0 referenced in function "unsigned long __cdecl CloseDisplay(void)" (?CloseDisplay@@YAKXZ)
1>animation.lib(amfilter.obj) : error LNK2001: unresolved external symbol __imp__CoUninitialize@0
1>animation.lib(wxutil.obj) : error LNK2001: unresolved external symbol __imp__CoUninitialize@0
1>system.lib(dxdiaginfo.obj) : error LNK2001: unresolved external symbol __imp__CoUninitialize@0
1>input.lib(CInputC.obj) : error LNK2019: unresolved external symbol __imp__RegSetValueExA@24 referenced in function "void __cdecl WriteToRegistry(char *,char *,int)" (?WriteToRegistry@@YAXPAD0H@Z)
1>input.lib(CInputC.obj) : error LNK2019: unresolved external symbol __imp__RegOpenKeyExA@20 referenced in function "void __cdecl WriteToRegistry(char *,char *,int)" (?WriteToRegistry@@YAXPAD0H@Z)
1>input.lib(CInputC.obj) : error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "void __cdecl WriteToRegistry(char *,char *,int)" (?WriteToRegistry@@YAXPAD0H@Z)
1>input.lib(CInputC.obj) : error LNK2019: unresolved external symbol __imp__RegCreateKeyExA@36 referenced in function "void __cdecl WriteToRegistry(char *,char *,int)" (?WriteToRegistry@@YAXPAD0H@Z)
1>input.lib(CInputC.obj) : error LNK2019: unresolved external symbol __imp__RegQueryValueExA@24 referenced in function "void __cdecl CoreReadStringFromRegistry(char *,char *,char *)" (?CoreReadStringFromRegistry@@YAXPAD00@Z)
1>system.lib(dxdiaginfo.obj) : error LNK2001: unresolved external symbol __imp__CoCreateInstance@20
1>music.lib(CMusicC.obj) : error LNK2019: unresolved external symbol __imp__CoCreateInstance@20 referenced in function "void __cdecl LoadMusicCore(char *,int)" (?LoadMusicCore@@YAXPADH@Z)
1>animation.lib(CAnimation.obj) : error LNK2001: unresolved external symbol __imp__CoCreateInstance@20
1>animation.lib(amfilter.obj) : error LNK2001: unresolved external symbol __imp__CoCreateInstance@20
1>multiplayer.lib(CNetwork.obj) : error LNK2001: unresolved external symbol __imp__CoCreateInstance@20
1>animation.lib(renbase.obj) : error LNK2019: unresolved external symbol __imp__CoTaskMemAlloc@4 referenced in function "public: virtual long __stdcall CRendererInputPin::QueryId(unsigned short * *)" (?QueryId@CRendererInputPin@@UAGJPAPAG@Z)
1>animation.lib(amfilter.obj) : error LNK2001: unresolved external symbol __imp__CoTaskMemAlloc@4
1>animation.lib(wxutil.obj) : error LNK2001: unresolved external symbol __imp__CoTaskMemAlloc@4
1>animation.lib(mtype.obj) : error LNK2001: unresolved external symbol __imp__CoTaskMemAlloc@4
1>animation.lib(amfilter.obj) : error LNK2019: unresolved external symbol __imp__CoFreeUnusedLibraries@0 referenced in function "public: virtual long __stdcall CBaseFilter::Register(void)" (?Register@CBaseFilter@@UAGJXZ)
1>animation.lib(wxutil.obj) : error LNK2019: unresolved external symbol __imp__SysAllocString@4 referenced in function _WriteBSTR@8
1>animation.lib(wxutil.obj) : error LNK2019: unresolved external symbol __imp__SysFreeString@4 referenced in function _FreeBSTR@4
1>animation.lib(mtype.obj) : error LNK2019: unresolved external symbol __imp__CoTaskMemFree@4 referenced in function "public: void __thiscall CMediaType::ResetFormatBuffer(void)" (?ResetFormatBuffer@CMediaType@@QAEXXZ)
1>system.lib(dxdiaginfo.obj) : error LNK2019: unresolved external symbol __imp__VariantClear@4 referenced in function "public: long __thiscall CDxDiagInfo::GetStringValue(struct IDxDiagContainer *,wchar_t *,char *,int)" (?GetStringValue@CDxDiagInfo@@QAEJPAUIDxDiagContainer@@PA_WPADH@Z)
1>system.lib(dxdiaginfo.obj) : error LNK2019: unresolved external symbol __imp__VariantInit@4 referenced in function "public: long __thiscall CDxDiagInfo::GetStringValue(struct IDxDiagContainer *,wchar_t *,char *,int)" (?GetStringValue@CDxDiagInfo@@QAEJPAUIDxDiagContainer@@PA_WPADH@Z)
1>LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
1>C:\Users\azz\Documents\Visual Studio 2005\Projects\Project2\Release\Project2.exe : fatal error LNK1120: 16 unresolved externals
1>Build log was saved at "file://c:\Users\azz\Documents\Visual Studio 2005\Projects\Project2\Project2\Release\BuildLog.htm"
1>Project2 - 49 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

i created an emty project then changed linker-subsystem to windows.
what am i doing wrong?
cypher0
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location:
Posted: 1st Mar 2007 01:45
Are you using DGDK or DGDK.NET.
If it's DGDK I wasn't aware that it could be used with VS2005

Regardless of the above:
Have you used VS2005 before with C++?
If not you might want to download the missing (standard) header files from Microsoft. Look for the 'Platform SDK' and click 'register' once it's installed.
RomuluS85
18
Years of Service
User Offline
Joined: 10th Apr 2006
Location:
Posted: 1st Mar 2007 20:35
umm... personally i'm not using vista, but...
back at work, a few months before vista was even released (was propably last summer or something), someone mentioned me that vista would be using DirectX 10... and that directx 10 would not be even released for windows xp, because it couldn't be done...
i haven't been keeping up to date with vista release at all after that, but if that is the case... ...well you know what that would indicate...

on the otherhand, it might be a good thing if someone with actual experience would answer...
Wilvis
18
Years of Service
User Offline
Joined: 6th Aug 2006
Location:
Posted: 4th Mar 2007 00:29
i use windows vista and i have visual studio 2005 standard. i get link errors, haven't really tried to resolve them but for now i just use the force option to get them to think not to sure if this is the same issue as yours.
Zumwalt
17
Years of Service
User Offline
Joined: 1st Feb 2007
Location: Tampa, FL
Posted: 4th Mar 2007 07:17
DX10 is supported on XP SP 2. Anyway, the link errors is do to the DX version, you need to install DX 9.0c SDK and the Platform SDK. Finally you need to make sure your C++ directories are setup right for the inclues and the libs. That will resolve the errors.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 4th Mar 2007 14:16
DX10 is not supported by XP at all - it may come with SP3 or as a separate installation ... maybe, if MS feel like it.

@TripleF,

First, the c++/code generation/runtime library is not set to multithreaded DLL (MSVCRT & LIBCMT problems).
Next, the linker/system/sub system is not set to windows ("no subsystem specified").
The other errors appear to be due to the runtime library linking. Fix these first two points, then compile again, and post any errors you get.

tripleF
18
Years of Service
User Offline
Joined: 4th Jun 2006
Location:
Posted: 7th Mar 2007 17:46
I set up a duel boot XP and Vista.Just program on XP now.I know it was the easy option=P but it works.

Login to post a reply

Server time is: 2024-11-19 12:19:39
Your offset time is: 2024-11-19 12:19:39