View Full Version : What does this mean????

08-12-2002, 03:29 AM
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.

08-12-2002, 03:46 AM
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++.