add these linker options to get make main() your entry point (I’m assuming you’re using VC):
/SUBSYSTEM:WINDOWS
/ENTRY:mainCRTStartup
-Lev
Thanks, Lev…
But the answer is not that simple - I’m developing an independent class that uses GLUT and I wouldn’t like to pass the (empty) argc and argv stuff all the way to the instance that calls glutInit() with empty parameters.
Any idea on how to pass glutInit() “empty” parameters, i.e. like just executing an .exe without any command line parameters ?
I also omitted the glutInit() call and it seemed to work fine - but as Bob pointed out, the glutInit() just might exist for a reason, so I’d rather use it than forget it.