I got you but because the GLEW I have downloaded from the GLEW project website doesn't link when using MinGW I work with MSVC .And as I have said ,setting to the CoreProfile gives me STATUS_STACK_BUFFER_OVERRUN.Anybody can confirm that defining CoreProfile needs MinGW compiler ?