So, I'm working under Visual Studio 6 and I'm coding in C (I have to use stricly ANSI C for this work assignment).
I'm trying to create some global scope pointers and initailize them to constants and I keep getting the error C2099.
Error text: error C2099: initializer is not a constantCode:char* fileText = (char*)malloc(100);
It seems to me that '100' is about as constant as you can get. I tried making a #define and initializing to that, but that also failed. Is it just impossible to initalize dynamic memory in global scope in C? Because it works fine within a function.