Jump to content
  • Advertisement
Sign in to follow this  
KOSH-30

TOTWGPG 2editon dx linking prob

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

Hi i just bought tricks of the windows game programming gurus 2 edition and got some compiler problems . i got these errors LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/demo8_11.exe : fatal error LNK1120: 1 unresolved externals i have dx 8.1 installed the lib and include files are on top and where automaticaly found by visual c+ 6.0 .so i think thats alright. i checked the forums and google and found out that after dx 8 d3d isnt supported anymore and that the lib file d3dim.lib is missing and could be the problem so i checked the forums and google and they said 2 try the newer lib file d3d8.lib . and that didnt work either So can anyone help me with these errors. thx.

Share this post


Link to post
Share on other sites
Advertisement
You created a console application instead of a windows application. Console applications expect a function called main(), while windows applications expect a function called WinMain(). Check the appendix of the book. I'm pretty sure there are instructions on setting up a project correctly.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!