Sign in to follow this  
KOSH-30

TOTWGPG 2editon dx linking prob

Recommended Posts

KOSH-30    106
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
Dave Hunt    4872
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this