won't compile

I’m using the following code just to see

#include <windows.h>
#include <gl\gl.h>
#include <gl\glu.h> #include <gl\glaux.h>

int main()
{
return 0;
}

I have all the header files.

I get:

sample01 error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup

&

sample01 fatal error LNK1120: 1 unresolved externals

Am I missing something?

it compiles alright for me. what compiler are you using?

I’m using visual sutdio 6.0 (c++) the built in compiler.

i am using dev C++ (only cause its free) and it works fine. for me there was a warning about puting includes on the same line.

You should create a “Win32 Console” project.

change it from int main() to WinMain()

int main is only for consol apps and you included windows.