I get the following error when compiling a win32/opengl prog. Using VC++ 6
F:\frame\framework\source.cpp(339) : error C2601: ‘WinMain’ : local function definitions are illegal
Error executing cl.exe.
I get the following error when compiling a win32/opengl prog. Using VC++ 6
F:\frame\framework\source.cpp(339) : error C2601: ‘WinMain’ : local function definitions are illegal
Error executing cl.exe.
it looks like you’ve tried do define a function inside of another, like a local data. Example :
void toto ()
{
void tutu ()
{
}
}
That is forbidden by msvc++.