// I need to have access to 'a' in whole file
// I cannot call constructor now
static A a;
int main()
{
/*
some code
*/
glewInit();
/*
some more code
*/
a = A();
}
I need to call constructor after calling glewInit() function
It`s constructor is using gl functions
Can I prevent C++ from initialising 'a' variable, and if so, how?