You’re probably using a Windows Application instead of a Windows “Console” Application or vice versa. A windows app needs a WinMain, while a console app needs a main. I think it’s better to create a new project for a console app and copy everything over the main cpp file. If you get into any more trouble provide a little more information as to if your using glut or something else.
Thanks a lot for your help. The Linking problem is gone now. Another problem I have is that:
When I execute (or run) my program, it works fine and I can see the drawing. But when I run the “exe” file located in the “Debug” folder, it will only show the drawing window without the drawing.
Thanks a lot. The program uses an input.dat file to get the coordinates. I put the input.dat file in same folder with .exe file and it is working fine now. Thanks for your help guys.