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 / warning LNK4098, error LNK2019 and error LNK1120 with Visual Studio 2003

Author
Message
tindex
17
Years of Service
User Offline
Joined: 24th Oct 2006
Location:
Posted: 28th Oct 2006 23:19
Does anybody know how to compile GDK project in Visual Studio 2003? Tech Support doesn't help and I have to ask such an elementary question in the forum.

I get this error:

LINK : warning LNK4098: defaultlib 'LIBC' conflicts with use of other libs; use /NODEFAULTLIB:library
LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup
Debug/GDKTest001.exe : fatal error LNK1120: 1 unresolved externals

I tries Ignoring Specific Library in project setting and it didn't resolve the issue. I just bought GDK three days ago and tried to run the suggested code in "Getting Started" of the manual.

I don't have Visual Studio 2005 and DGK doesn't work with Visual Studio Express 2005 because it only creates console Win32 projects.
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 29th Oct 2006 11:22
Uh, it does not have any secret.
First error I think that can be ignored, the problem is the second one (but I don't know why that appears ).
Have you checked the include/lib paths at the compiler options?
Or maybe you are using more than one source file in the same project?
Check also that all the functions that you have defined have their primitive declaration made too...
OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 29th Oct 2006 14:12
Perhaps the library type is incorrect - or perhaps your using main(), when you shouldn't be.

Visit my web site for real bangin' stuff. Word.
tindex
17
Years of Service
User Offline
Joined: 24th Oct 2006
Location:
Posted: 29th Oct 2006 15:02
Thank you guys, I actually followed "Getting Started" of latest version of DG SDK many times, and as per instruction, I copy this code to compile:

#include "DarkGDK.h"

void DarkGDK ( void )
{
dbSyncOn ( );
while ( LoopGDK ( ) )
{
dbSync ( );
}
}

I think, and per instruction, with DG SDK, we only work with entry point darkGDK() not main().
tindex
17
Years of Service
User Offline
Joined: 24th Oct 2006
Location:
Posted: 29th Oct 2006 16:22
I think it was my fault, everything fine now. It was my project setting. I confused vc7.1 by having two DX SDKs!! I didn't have this problem with other game engines. Thank you guys for trying to help.

Login to post a reply

Server time is: 2024-06-17 07:15:36
Your offset time is: 2024-06-17 07:15:36