Jump to content
  • Advertisement

Archived

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

hiryu3

VC++ and lnk2001

This topic is 6768 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

I have been trying to improve my programming skills by trying to right some simple windows apps. But I keep getting a LNK2001 error when I try to build. I get not warnings or errors. By the way this code that I am trying is from the Windows Gaming Secrets Book. I can''t make an exe for anything when it comes to windows apps. All of my includes, headers, and all other stuff is correct and up to date. Can someonme please help. hiryu3@hotmail.com

Share this post


Link to post
Share on other sites
Advertisement
It would help if you told us Exactly what error you get, word for word what the compiler tells you.

But Ill try to help anyway, that error is pretty common. Usually a problem with locating functions.

You may have a declaration of a function:
int funcname();

and the compiler is expecting to find the definition somewhere but cant:
you should have a
int funcname()
{
return 1;
}
but you might have mis typed and put
int funtname()
{
return 1;
}

but with this error theres all sorts of similar errors that cause it.

umm I hope I helped a little.

One person said that the games industry is "a transfer of funds from the rich to the lucky"

Share this post


Link to post
Share on other sites
sounds like a linker error. what *.lib files do you have loaded up?

a2k

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!