cannot initialize pointer to code-based object 'identifier'
Pointers to code-based object cannot be statically initialized.
Example
__declspec(allocate("_CODE")) int i ; int *p = &i ;
To fix this example, rewrite the statements to initialize the pointer dynamically:
__declspec(allocate("_CODE")) int i ; int *p ; main() { p = &i ; . . . }