Hi PalZ …
I dont know what to do with this error :
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/gl1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
gl1.exe - 2 error(s), 0 warning(s)]
i’m working on MS Visual c++ 6 …
i’m working on WindowsXP bulid2600 …
i’ve added the Lib files to the Settings|link|object/library modules
glu32.lib , glut32.lib , opengl32.lib .
i’ve added glu32.dll & glu32.lib & glut32.dll & glut32.lib &
opengl32.dll & opengl32.lib .
i’ve included gl.h & glu.H & glut.32.H
PleeeeeeeeeeeeeeeeeeeeeeeeeZ Help Me …
email me at [firstname.lastname@example.org]
Thanx 4 any help …
that should work fine.
i’ve already copy the *.h files
thr 3 files gl.h & glu.h & glut.h from
but it give me the same error …
i think there is a problem with WinXP …
Any WaY … ThanX alot Great Man
Why would including the GLUT header fix the missing symbol? Including a header is a compile time process, and the missing symbol is a linker error.
You have created the wrong type of executable project. There are two common types; Application and Console Application. An Application requires a WinMain() function, and a Console Application requires a main() function. Dependeing on which of these two functions you have, you have to create the right type of project.
i think there is a problem with WinXP
No, the problem is that you don’t know your compiler enough. The settings of your project does not match the code.