Ok, this is a follow up from my question in the upgrade thread:
http://forum.thegamecreators.com/?m=forum_view&t=99952&b=22
Originally I was asking for a way to configure VC++2005 express so I can use the upgrade in mention.
I made a swap set of include and lib folders, and with the previous version, everything works fine.
When using the upgrade folders, I configured the ide to search for lib files in the corresponding debug and release folders for vs8.
Running samples or my own program it always show a lot of errors. A simple test program I made shows all this:
------ Rebuild All started: Project: ClaseTest5, Configuration: Release Win32 ------
Deleting intermediate and output files for project \'ClaseTest5\', configuration \'Release|Win32\'
Compiling...
ClaseTestV.cpp
Linking...
darksdk.lib(DarkSDKCore.obj) : warning LNK4075: ignoring \'/EDITANDCONTINUE\' due to \'/OPT:ICF\' specification
LIBCMTD.lib(dbgheap.obj) : error LNK2005: _malloc already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMTD.lib(dbgheap.obj) : error LNK2005: _realloc already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMTD.lib(dbgheap.obj) : error LNK2005: _free already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMTD.lib(wcstombs.obj) : error LNK2005: _wcstombs already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMTD.lib(crt0dat.obj) : error LNK2005: _exit already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMTD.lib(crt0dat.obj) : error LNK2005: __exit already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMTD.lib(crt0dat.obj) : error LNK2005: __cexit already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMTD.lib(crt0dat.obj) : error LNK2005: __amsg_exit already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMTD.lib(crt0dat.obj) : error LNK2005: __initterm_e already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMTD.lib(dbghook.obj) : error LNK2005: __crt_debugger_hook already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMTD.lib(setlocal.obj) : error LNK2005: __configthreadlocale already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMTD.lib(tidtable.obj) : error LNK2005: __encode_pointer already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMTD.lib(tidtable.obj) : error LNK2005: __decode_pointer already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMTD.lib(sprintf.obj) : error LNK2005: _sprintf already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in MSVCRT.lib(cinitexe.obj)
LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in MSVCRT.lib(cinitexe.obj)
LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in MSVCRT.lib(cinitexe.obj)
LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in MSVCRT.lib(cinitexe.obj)
LIBCMTD.lib(hooks.obj) : error LNK2005: \"void __cdecl terminate(void)\" (?terminate@@YAXXZ) already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMTD.lib(winxfltr.obj) : error LNK2005: __XcptFilter already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMTD.lib(invarg.obj) : error LNK2005: __invalid_parameter already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMTD.lib(invarg.obj) : error LNK2005: __invoke_watson already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMTD.lib(vswprint.obj) : error LNK2005: __vswprintf already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMTD.lib(mlock.obj) : error LNK2005: __lock already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMTD.lib(mlock.obj) : error LNK2005: __unlock already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMTD.lib(errmode.obj) : error LNK2005: ___set_app_type already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMTD.lib(printf.obj) : error LNK2005: _printf already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMTD.lib(stricmp.obj) : error LNK2005: __stricmp already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMTD.lib(atox.obj) : error LNK2005: _atoi already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMTD.lib(atox.obj) : error LNK2005: __atoi64 already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMTD.lib(ismbbyte.obj) : error LNK2005: __ismbblead already defined in MSVCRT.lib(MSVCR80.dll)
LIBCMTD.lib(strnicmp.obj) : error LNK2005: __strnicmp already defined in MSVCRT.lib(MSVCR80.dll)
LINK : warning LNK4098: defaultlib \'MSVCRT\' conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib \'LIBCMTD\' conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib \'LIBCMT\' conflicts with use of other libs; use /NODEFAULTLIB:library
LIBCMTD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
C:\\dev3d\\DarkGDK\\JDprojects\\ClaseTest5\\Release\\ClaseTest5.exe : fatal error LNK1120: 1 unresolved externals
Build log was saved at \"file://c:\\dev3d\\DarkGDK\\JDprojects\\ClaseTest5\\ClaseTest5\\Release\\BuildLog.htm\"
ClaseTest5 - 34 error(s), 4 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
In both release and debug modes the linker errors are pretty the same.
If I remove the vs8Debug folder from the VC++ directories configuration, the errors are like this:
------ Rebuild All started: Project: ClaseTest5, Configuration: Release Win32 ------
Deleting intermediate and output files for project \'ClaseTest5\', configuration \'Release|Win32\'
Compiling...
ClaseTestV.cpp
Linking...
LINK : warning LNK4098: defaultlib \'LIBCMT\' conflicts with use of other libs; use /NODEFAULTLIB:library
core.lib(DBDLLCore.obj) : error LNK2001: unresolved external symbol __imp__CoInitialize@4
animation.lib(amfilter.obj) : error LNK2001: unresolved external symbol __imp__CoInitialize@4
animation.lib(wxutil.obj) : error LNK2001: unresolved external symbol __imp__CoInitialize@4
system.lib(dxdiaginfo.obj) : error LNK2001: unresolved external symbol __imp__CoInitialize@4
core.lib(DBDLLCore.obj) : error LNK2001: unresolved external symbol __imp__CoUninitialize@0
animation.lib(amfilter.obj) : error LNK2001: unresolved external symbol __imp__CoUninitialize@0
animation.lib(wxutil.obj) : error LNK2001: unresolved external symbol __imp__CoUninitialize@0
system.lib(dxdiaginfo.obj) : error LNK2001: unresolved external symbol __imp__CoUninitialize@0
input.lib(CInputC.obj) : error LNK2001: unresolved external symbol __imp__RegSetValueExA@24
input.lib(CInputC.obj) : error LNK2001: unresolved external symbol __imp__RegOpenKeyExA@20
input.lib(CInputC.obj) : error LNK2001: unresolved external symbol __imp__RegCloseKey@4
input.lib(CInputC.obj) : error LNK2001: unresolved external symbol __imp__RegCreateKeyExA@36
input.lib(CInputC.obj) : error LNK2001: unresolved external symbol __imp__RegQueryValueExA@24
system.lib(dxdiaginfo.obj) : error LNK2001: unresolved external symbol __imp__CoCreateInstance@20
music.lib(CMusicC.obj) : error LNK2001: unresolved external symbol __imp__CoCreateInstance@20
animation.lib(CAnimation.obj) : error LNK2001: unresolved external symbol __imp__CoCreateInstance@20
animation.lib(amfilter.obj) : error LNK2001: unresolved external symbol __imp__CoCreateInstance@20
multiplayer.lib(CNetwork.obj) : error LNK2001: unresolved external symbol __imp__CoCreateInstance@20
animation.lib(renbase.obj) : error LNK2001: unresolved external symbol __imp__CoTaskMemAlloc@4
animation.lib(amfilter.obj) : error LNK2001: unresolved external symbol __imp__CoTaskMemAlloc@4
animation.lib(wxutil.obj) : error LNK2001: unresolved external symbol __imp__CoTaskMemAlloc@4
animation.lib(mtype.obj) : error LNK2001: unresolved external symbol __imp__CoTaskMemAlloc@4
animation.lib(amfilter.obj) : error LNK2001: unresolved external symbol __imp__CoFreeUnusedLibraries@0
animation.lib(wxutil.obj) : error LNK2001: unresolved external symbol __imp__SysAllocString@4
animation.lib(wxutil.obj) : error LNK2001: unresolved external symbol __imp__SysFreeString@4
animation.lib(mtype.obj) : error LNK2001: unresolved external symbol __imp__CoTaskMemFree@4
system.lib(dxdiaginfo.obj) : error LNK2001: unresolved external symbol __imp__VariantClear@4
system.lib(dxdiaginfo.obj) : error LNK2001: unresolved external symbol __imp__VariantInit@4
C:\\dev3d\\DarkGDK\\JDprojects\\ClaseTest5\\Release\\ClaseTest5.exe : fatal error LNK1120: 15 unresolved externals
Build log was saved at \"file://c:\\dev3d\\DarkGDK\\JDprojects\\ClaseTest5\\ClaseTest5\\Release\\BuildLog.htm\"
ClaseTest5 - 29 error(s), 1 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
So, please any idea is welcome. I use XP SP2, DirectX 9.0c december 2006, and Windows platform sdk for windows server 2003 R2.
As I say, removing the upgrade it works fine.
Thanks,
JD
May the 3d force B with U