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 / Entry point problem....

Author
Message
wh1sp3r
21
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Czech republic
Posted: 14th Oct 2008 14:04


ERROR:
LINK : fatal error LNK1561: entry point must be defined


I've created new empty win32 project. All directories are set. Wat should I do, have you an experience with this problem please ? thank you


PS: Real programmers aren't afraid of math!.
sydbod
16
Years of Service
User Offline
Joined: 14th Jun 2008
Location: Just look at the picture
Posted: 14th Oct 2008 14:17
Yes .... when you want to make a new project:
In the "Project types:" , select "Wizards"

Then you will have a choice of only the following 3:
Dark GDK - 2D Games
Dark GDK - 3D Games
Dark GDK - Games
wh1sp3r
21
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Czech republic
Posted: 14th Oct 2008 14:19
sydbod: LNK2001: unresolved external symbol _WinMainCRTStartup


PS: Real programmers aren't afraid of math!.
sydbod
16
Years of Service
User Offline
Joined: 14th Jun 2008
Location: Just look at the picture
Posted: 14th Oct 2008 14:28 Edited at: 14th Oct 2008 14:30
Lets start from the beginning.

1)You firstly installed Visual C++ 2008 Express edition.

2) you then installed the latest DirectX SDK.

3) you then started up Visual C++ and closed it down again so it could configure itself.

4) you then ran the "Dark GDK" download.

This download will only expand the "Dark GDK" package.
You will have to then run the expanded "Dark GDK files" to actually install them.
wh1sp3r
21
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Czech republic
Posted: 14th Oct 2008 14:34
yes after all, I set app paths to libraries and includes.

Wizard works, but i dont understand, why new empty win32 empy project not. I have same configuration of compiler and linker as wizard. where is a problem.

I have attached my project.


PS: Real programmers aren't afraid of math!.

Attachments

Login to view attachments
sydbod
16
Years of Service
User Offline
Joined: 14th Jun 2008
Location: Just look at the picture
Posted: 14th Oct 2008 14:56
Always use the Wizard to start off with.

Winmain is not your program entry point.

Try the following project and look at its configuration.

Attachments

Login to view attachments
wh1sp3r
21
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Czech republic
Posted: 14th Oct 2008 17:03 Edited at: 14th Oct 2008 17:21
sydbod: problem is, when I save my project from wizard and open it again, it doesnt work it shows these errors ...


EDIT: your sample works... I have to figure out, where is problem .. when I create empty win32 application.

EDIT2: STRANGE, lol ... now, Its working, when I create empty project .... I dont know, where was a problem, really


PS: Real programmers aren't afraid of math!.
sydbod
16
Years of Service
User Offline
Joined: 14th Jun 2008
Location: Just look at the picture
Posted: 15th Oct 2008 05:21
Good to see things are sorted out.

Maybe you just did not restart windows after doing the install, and things did not fully configure..... Windows can be funny like that at times.
Orac
18
Years of Service
User Offline
Joined: 16th May 2006
Location: Billingham
Posted: 2nd Nov 2008 17:24
I think the problem was that in your original code you didn't have a LoopGDK() call. I had exactly the same problem, same error message until I put in :-



then it compiled OK. sybods example is the very minimum you need to compile and run a GDK program.

There are only 10 types of people in the world.
Those who understand binary, and those who don't.

Login to post a reply

Server time is: 2024-11-25 05:43:38
Your offset time is: 2024-11-25 05:43:38