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 / Set up; Can anyone help me with two Fatal Errors please.

Author
Message
GeneMatlock
6
Years of Service
User Offline
Joined: 9th Jun 2013
Location:
Posted: 9th Jun 2013 20:50
I have set up Dark GDK all in my D: (second) drive.

the following two errors are stopping me from using Dark GDK;

error LNK2005: "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ) already defined in Main.obj


fatal error LNK1169: one or more multiply defined symbols found


Please help
Rudolpho
13
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 10th Jun 2013 03:37
Can you paste your includes and linked libraries (in the order they occur)?


"Why do programmers get Halloween and Christmas mixed up?"
GeneMatlock
6
Years of Service
User Offline
Joined: 9th Jun 2013
Location:
Posted: 10th Jun 2013 19:26
I actually overcame this problem, What was wrong was that I had two Main.cpp files. One and another with an alternative name, that had the main code in it as well.

So it seems you cannot declare a project file with two .cpp files including main code.
Rudolpho
13
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 11th Jun 2013 02:49
Sure you can, they shouldn't define the same function bodies though if that's what you meant (ie. you have two different implementations of DarkGDK() or main() in your source files).


"Why do programmers get Halloween and Christmas mixed up?"
GeneMatlock
6
Years of Service
User Offline
Joined: 9th Jun 2013
Location:
Posted: 14th Jun 2013 14:56
Ok Perhaps you can only not have two Main Functions.

Every program has only one MAIN LOOP

Login to post a reply

Server time is: 2019-09-17 09:39:27
Your offset time is: 2019-09-17 09:39:27