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 / Linker error ; 1561 , please help!

Author
Message
Hayer
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 21st Jan 2008 18:29
Hi!
I am getting this error(in Visual C++ Express Edition)


And I can't figure out why!
Any soultions / workarounds?

John Goewert
16
Years of Service
User Offline
Joined: 1st Jan 2008
Location: Cornfield, MO
Posted: 22nd Jan 2008 00:23
Well, the crux of that problem is that it is trying to find the entry point for your code, but isn't. For DarkGDK apps, this is usually "void DarkGDK ( void ){}"

Looking at your compile line, I'm guessing you are making a DLL due to the /MDd flag. Odd that you are trying to name that DLL "FPS Map Editor 2.exe".

If you are really trying to make an EXE, go into your projects properties and under Configuration Properties->General, change "Configuration Type" from Dynamic Library (DLL) to Application (EXE).

Using DGDK since 01/01/2008
Blah - http://www.john.goewert.org
Hayer
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 22nd Jan 2008 15:25
It already says "Application (Exe)"

FERSIS
18
Years of Service
User Offline
Joined: 17th May 2006
Location:
Posted: 22nd Jan 2008 18:41
Check that you have this option checked:
Project->Properties->Code Generation->Runtime Library Multi-threaded Debug (/MTd).
Pixel Perfect
17
Years of Service
User Offline
Joined: 21st Feb 2007
Location: UK
Posted: 22nd Jan 2008 21:44
I don't know if your using an earlier version of DGDK which came with both the debug and release versions of the libraries.

However, if you are using the latest free library then it only comes with a release library and if you are building an executable you need to have the runtime library set to:

Multi-threaded (/MT)

Otherwise it will be built with the wrong runtime libraries and you'll get linker errors.

Edit you project configuration as Ferris pointed out above but set it to /MT

Not sure why you are getting the LNK1561 error unless, as John suggested, the project thinks it's building a DLL and is looking for a DLL entry point!

Did you use a Dark GDK template to create your Project?

No matter how good your code is, someone will improve on it
Hayer
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 23rd Jan 2008 08:31
Quote: "Check that you have this option checked:
Project->Properties->Code Generation->Runtime Library Multi-threaded Debug (/MTd).
"


Then I get this LNK-Error


Pixel Perfect
17
Years of Service
User Offline
Joined: 21st Feb 2007
Location: UK
Posted: 23rd Jan 2008 09:33
Did you not read my post above

No matter how good your code is, someone will improve on it

Login to post a reply

Server time is: 2024-11-19 23:06:46
Your offset time is: 2024-11-19 23:06:46