TOTWGPG 2editon dx linking prob

Started by
1 comment, last by KOSH-30 19 years, 4 months ago
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.
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.
Yeah it works now ,i copy and pasted the files .
Now i added the files and cpp file 2 and it works

This topic is closed to new replies.

Advertisement