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 / LNK2019 - Linker Error.

Author
Message
Swampert
15
Years of Service
User Offline
Joined: 17th Dec 2008
Location: Somewhere in the Interwebs
Posted: 24th Feb 2009 12:33
The code in my title page file compiles fine but when it tries to link, it totally screws up. What am i doing wrong?

Here's the function


And this is the error I get:

title.obj : error LNK2019: unresolved external symbol "void __cdecl PokeText(int,int,int,char *,bool,bool)" (?PokeText@@YAXHHHPAD_N1@Z) referenced in function "void __cdecl title(void)" (?title@@YAXXZ)

GDA - Game Developers Anonymous - Get in touch with your creative side.

Yeah I like Pokemon... so what?
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 24th Feb 2009 16:56
Do you have a PokeText() function defined somewhere?

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
prasoc
15
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 24th Feb 2009 17:37
Is it in a different file? if so, add the file to your project to the side of your screen (vc++)
Swampert
15
Years of Service
User Offline
Joined: 17th Dec 2008
Location: Somewhere in the Interwebs
Posted: 24th Feb 2009 21:36 Edited at: 24th Feb 2009 21:49
CHAR ME[7] = "Dumbass"

I spelled the function wrong in the header file so it didn't match the .cpp file... wow.. lol

GDA - Game Developers Anonymous - Get in touch with your creative side.

Yeah I like Pokemon... so what?

Login to post a reply

Server time is: 2024-09-30 19:31:31
Your offset time is: 2024-09-30 19:31:31