Problems with code from a book.
I got the book tittled "game programming in 24 hours". The first chapter is called Windows Primer where it teachers you about making a windows program. This is where the problems arises...I get the code from the cd and compile it but an error comes up...
Compiling resources...
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Skeleton.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
I opened the workspace from the folder so i assume it has it in win32..
Any suggestions would be nice. Thanks.
In VC++ when you create a project, you are setting it as a console project, when it needs to be a win32 application.
You''re getting that error because VC++ thinks you are making a console application, but cant find main() anywhere.
You''re getting that error because VC++ thinks you are making a console application, but cant find main() anywhere.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement