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 / Problems with upgrade 120307

Author
Message
JDforce
20
Years of Service
User Offline
Joined: 27th Jul 2004
Location: Sea of Tranquility
Posted: 22nd Mar 2007 04:52
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:




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:



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
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 22nd Mar 2007 10:04
In which case, you need to add the following to 'Addition Dependancies' : ole32.lib kernel32.lib oleaut32.lib Advapi32.lib

Visit my web site for real bangin' stuff. Word.
JDforce
20
Years of Service
User Offline
Joined: 27th Jul 2004
Location: Sea of Tranquility
Posted: 22nd Mar 2007 22:24
I added the libraries to

Project properties>
Configuration properties>
Linker>
Input>
Additional Dependencies.

It does rebuild perfectly in release mode, and runs OK.
However there is still this message:



So in the same set of linker options I choose "ignore all default libraries" to /NODEFAULTLIB, in which case the program does not run. Seems I have to add libraries one by one.

Where could I set this LIBCMT to be ignored? I added it to "Ignore specific library" but it still shows the warning.

May the 3d force B with U
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 23rd Mar 2007 11:35
You can ignore that message, or you can add /NODEFAULTLIB:LIBCMT to the list in Linker -> Commandline

Visit my web site for real bangin' stuff. Word.
Jna99
19
Years of Service
User Offline
Joined: 3rd Nov 2005
Location: Portugal
Posted: 4th May 2007 17:19
Hi I've done all you say above but I get this errors

Quote: "
>C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\string.h(142) : warning C4616: #pragma warning : warning number '6059' out of range, must be between '4001' and '4999'
1>C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\wchar.h(1223) : warning C4616: #pragma warning : warning number '6386' out of range, must be between '4001' and '4999'
1>C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\wchar.h(1232) : warning C4616: #pragma warning : warning number '6386' out of range, must be between '4001' and '4999'
1>C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\wchar.h(1241) : warning C4616: #pragma warning : warning number '6386' out of range, must be between '4001' and '4999'
1>C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\wchar.h(1242) : warning C4616: #pragma warning : warning number '6387' out of range, must be between '4001' and '4999'
1>C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\wchar.h(1252) : warning C4616: #pragma warning : warning number '6386' out of range, must be between '4001' and '4999'
1>C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xutility(911) : error C2275: 'std::_Iterator_base' : illegal use of this type as an expression
1> C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xutility(117) : see declaration of 'std::_Iterator_base'
1> C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xutility(912) : see reference to class template instantiation 'std::_Checked_iterator_category<_Iter>' being compiled
1>C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xutility(911) : error C3861: '__is_base_of': identifier not found
1>C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xutility(957) : error C2275: 'std::_Iterator_base' : illegal use of this type as an expression
1> C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xutility(117) : see declaration of 'std::_Iterator_base'
1> C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xutility(962) : see reference to class template instantiation 'std::_Checked_iterator_base_helper<_Iter>' being compiled
1>C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xutility(957) : error C3861: '__is_base_of': identifier not found
1>C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xutility(1615) : warning C4616: #pragma warning : warning number '6295' out of range, must be between '4001' and '4999'
1>main.cpp(10) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
1>Build log was saved at "file://c:\Users\Jna\Documents\Visual Studio 2005\Projects\Teste\DarkGDK\DarkGDK\Debug\BuildLog.htm"
1>DarkGDK - 4 error(s), 10 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
"


the program is this:
Quote: "
#include "DarkGDK.h"

void DarkGDK ( void )
{
dbSyncOn ( );
dbMakeObjectCube(1,2);

while ( LoopGDK ( ) )
{
dbYRotateObject(1,dbObjectAngleY(1)+.25);
dbSync ( );
}
} "
Chalkey
17
Years of Service
User Offline
Joined: 25th May 2007
Location:
Posted: 31st May 2007 01:26
To Jna

Have you tried changing the compiler options...

Quote: "
Possible Compiler Errors
Ensure the project is set to Multithreaded, not Multithreaded DLL ("project\properties\configuration properties\c&c++\Code Generation\runtime library").
If you fail to make this change, you may get the following error message:

LIBCMT.lib(invarg.obj) : error LNK2005: __invoke_watson already defined in MSVCRTD.lib(MSVCR80D.dll)
"


That got me the first time I installed it.

Andy

Login to post a reply

Server time is: 2024-11-19 13:28:40
Your offset time is: 2024-11-19 13:28:40