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 / unresolved external symbol _main

Author
Message
Profit
18
Years of Service
User Offline
Joined: 19th Feb 2006
Location: United States
Posted: 4th Sep 2006 23:00
LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main

Hi, what's the best way to fix this problem? It's been preventing me from using this software.

(I attached my VS2005 express project, incase that could come in useful)

Thanks

common people are walking in line.

Mitsu Fly Ride.

Attachments

Login to view attachments
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 4th Sep 2006 23:05
Have you implemented your void DarkDGK() function?

You will also need to make sure that #include <DarkGDK.h> is included, as this imports the necessary .lib files to resolve the 'main' function which is implemented by the DGDK lib files.

Paul.

Profit
18
Years of Service
User Offline
Joined: 19th Feb 2006
Location: United States
Posted: 4th Sep 2006 23:14

This is the code that I am using.

common people are walking in line.

Mitsu Fly Ride.
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 4th Sep 2006 23:16 Edited at: 4th Sep 2006 23:23
That really should be #include <DarkGDK.h>

if your using quotation, it's only looking in the local project folder.

Paul.

Profit
18
Years of Service
User Offline
Joined: 19th Feb 2006
Location: United States
Posted: 4th Sep 2006 23:22
Thanks for that little tip.

Unfortunately, the same thing is is still happening.

common people are walking in line.

Mitsu Fly Ride.
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 4th Sep 2006 23:23
I'm trying to establish if DarkGDK.h is actually getting included into the build. I know the samples use "DarkGDK.h", but if your getting an unresolved _main error, chances are that the GDK libraries are not being linked.

Paul.

APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 4th Sep 2006 23:24
Can you check under Tools/Options/Projects/VC++ directories, to see if both the include and library paths are pointing to where GDK is installed on your PC?

Paul.

Profit
18
Years of Service
User Offline
Joined: 19th Feb 2006
Location: United States
Posted: 4th Sep 2006 23:27
Yes,
c:\darkgdk\include

c:\darkgdk\lib\vs8

common people are walking in line.

Mitsu Fly Ride.
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 4th Sep 2006 23:31
Let me check your project, I noticed the download...

APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 5th Sep 2006 00:00
This is most strange, most stange indeed. The problem occurs when creating a Console based project.

I resolved the problem by creating a win32 Empty project.

Attached is my attempt. Also, with the latest version of the DGDK, download from your orders page, you only need to exclude 'Quartz.lib' from the library exclusion list.

Paul.

Attachments

Login to view attachments
Profit
18
Years of Service
User Offline
Joined: 19th Feb 2006
Location: United States
Posted: 5th Sep 2006 00:05 Edited at: 5th Sep 2006 00:12
Testing now. Thanks a lot APEXnow for the awesome support.

edit: Fully works. Thanks again.

common people are walking in line.

Mitsu Fly Ride.
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 5th Sep 2006 00:08
No problem

Paul.

Miguel Melo
19
Years of Service
User Offline
Joined: 8th Aug 2005
Location:
Posted: 5th Sep 2006 17:48 Edited at: 5th Sep 2006 17:48
Incidently, I think that - although they now include the DBO*.h stuff - globals.h (or is it global.h? not sure, I'm not at home right now) is still missing in the distribution. Had to fish that file out from the 6.2 extras zip.

I have vague plans for World Domination

Login to post a reply

Server time is: 2024-11-19 08:47:02
Your offset time is: 2024-11-19 08:47:02