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 / LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup

Author
Message
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 9th May 2007 16:09
I just tried reinstalling visual studio 2005/vis c 8 and i get the following error LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup does anyone know what this means in english as usall the microsoft site was useless and im not sure if ive set up gdk correctly and the error maybe not reporting as expected.

Ive installed GDK and ezrotate and pathed the include and lib folders, ive also installed directx8 sdk for its lib folder and directx 9c sdk pathing the include and lib folders. Ive also included paths to the microsoft developer 2003 sdk and get the following error i still have to set the output to compile right but i dont think this is the error i should be getting for that.

Any help would be appreciated

fubar
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 18th May 2007 00:55
This is the listed errors i get theres allot of them as you can see its almost as though it isnt seeing the gdk includes and libs strange becuase ive referenced them too.



fubar
Jna99
18
Years of Service
User Offline
Joined: 3rd Nov 2005
Location: Portugal
Posted: 18th May 2007 20:43 Edited at: 18th May 2007 20:44
Hi fubarpk can U please post the code U're trying to run?
Check bellow some solutions:

- create win32 application project (empty)
- dont forget to use the #include "DarkGDK.h"
- don't use int main use instead void DARKGDK()
- no MD unless youre using windows forms so use MT
- additional lib ole32.lib kernel32.lib oleaut32.lib Advapi32.lib
- ignore quartz.lib
- machine x86 and all the libs must be x86
- use VC8 lib of GDK if using VS2005 ou VC++2005
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 19th May 2007 03:46
Ive included my visual c settings below

The include files


The Lib Files


Im sure its a setting as the projects compiled before i just formatted my machine and reinstalled thats all

fubar
Jna99
18
Years of Service
User Offline
Joined: 3rd Nov 2005
Location: Portugal
Posted: 19th May 2007 15:53
Here I sent my config, notice that the order of things count!

Attachments

Login to view attachments
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 19th May 2007 16:19
thanks Jna 99 i just tried your config layout on mine and still get the same problem its like the gdk files dont exist and i know they do

fubar
Jna99
18
Years of Service
User Offline
Joined: 3rd Nov 2005
Location: Portugal
Posted: 20th May 2007 01:15
When you create a project is a Win32->Aplication right? And you're not using any forms? That appeared to me when I used forms...
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 20th May 2007 06:17
i have been using a blank win 32 application i even tried recreating the projects

fubar
Jna99
18
Years of Service
User Offline
Joined: 3rd Nov 2005
Location: Portugal
Posted: 20th May 2007 12:05
Check anyway if the Common Language Runtime Support is not on Properties->Configuration Properties->General....if is off FUBAR
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 20th May 2007 12:08
I JUST SOLVED IT the problem was "no/default:lib" being set. Removing that option fixed the problem

fubar
Jna99
18
Years of Service
User Offline
Joined: 3rd Nov 2005
Location: Portugal
Posted: 20th May 2007 19:33
ok sorry I didn't help mutch
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 21st May 2007 05:06
nah dont be sorry your help let me realise a few things to try and encouraged the help of making new projects i just got into allways setting /no:defaultlib because i used to and it worked

fubar

Login to post a reply

Server time is: 2024-09-28 23:17:34
Your offset time is: 2024-09-28 23:17:34