Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

RaistlinMajere

error..:(

This topic is 5410 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

when i compile my project i get no errors. then when i run it i get these:
akblak.obj : error LNK2001: unresolved external symbol "void __cdecl findWinner(int * const)" (?findWinner@@YAXQAH@Z)
jakblak.obj : error LNK2001: unresolved external symbol "void __cdecl totalIt(int * const,int * const,int)" (?totalIt@@YAXQAH0H@Z)
jakblak.obj : error LNK2001: unresolved external symbol "char __cdecl getAns(char * const)" (?getAns@@YADQAD@Z)
jakblak.obj : error LNK2001: unresolved external symbol "void __cdecl playerGetsCard(int *,int * const,int * const)" (?playerGetsCard@@YAXPAHQAH1@Z)
jakblak.obj : error LNK2001: unresolved external symbol "void __cdecl dealerGetsCard(int *,int * const,int * const)" (?dealerGetsCard@@YAXPAHQAH1@Z)
jakblak.obj : error LNK2001: unresolved external symbol "void __cdecl initCardsScreen(int * const,int * const,int * const,int * const,int *)" (?initCardsScreen@@YAXQAH000PAH@Z)
can some one help me? -thanks

Share this post


Link to post
Share on other sites
Advertisement
I assume these functions are part of a header file, and their definitions are in a related cpp file.

Basically, the problem is the compiler can''t find the function body. If it couldn''t find the function name, you would get a different error, but in this case it''s the body. So, you need to find out if the cpp associated with the header is including the header. Also, if you are using VC++, then you also need to make sure the cpp file is included in the project (add it to the source files folder in the project explorer, or whatever it''s called).

You''ll see this later, if you get into graphics programming, if you fail to link the proper libraries.


Do you use your powers for good or for awesome?
|GYAH!!! | Association of Computing Machinery|

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!