Error while calling pin_virtual_time in opcode
I was creating a global variable and assigning the value of pin_virtual_time to it.
1) time_t now = pin_virtual_time(NULL);
2) const time_t now = pin_virtual_time(NULL);
But I am getting error when I do make.
"fm_hob_pymt_pol_topup.c", line 37: non-constant initializer: op "CALL"
cc: acomp failed for fm_hob_pymt_pol_topup.c
*** Error code 2
make: Fatal error: Command failed for target `fm_hob_pymt_pol_topup.o'
Please Suggest.
Thanks & Regards
Sowmya