Sign in to follow this  

TOTWGPG 2editon dx linking prob

This topic is 4802 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
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
Yeah it works now ,i copy and pasted the files .
Now i added the files and cpp file 2 and it works

Share this post


Link to post
Share on other sites

This topic is 4802 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.

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