I’m tring to compile my first opengl program
using VC++6 in WINXP,I created a project in VC++ and added all the libs for opengl to that project,then I wrote a really simple program:
You have linked your application as a windows application, this does require a WinMain() function and that one is missing, possibly you would like to set your linker options to create a console application, then your main() function will be called.
You can also set it with the entry point option in the linker settings.
The reason for the @16 is the calling convention, WinMain has 4 arguments, using 4 bytes on the stack each 4*4=16, that’s why you have a trailing @16 in the name.
No, this is just the daily Win32 Application vs Console Application problem. Make sure you create the corrext type of project. Console application requires a main function, and a Win32 Application requires a WinMain function.
And that 16 means, if I remember correct, that the linker wants a function that takes 16 bytes of parameters.