Forum Discussion
Altera_Forum
Honored Contributor
8 years agoerror: invalid operands to binary expression ('double *' and 'double')
:(:(:(When I compile the kernel, the error comes out,"error: invalid operands to binary expression ('double *' and 'double')",the variables down there are all double types.
code:************************************************************ opt_price_step[n] = e_rt_p*opt_price_step[n] + e_rt_q*opt_price_step[n+1]; ***************************************************************** How to fix this ? Can anyone help me?Thanks.2 Replies
- Altera_Forum
Honored Contributor
One of your operands (probably "e_rt_p") is a pointer instead of a value. How are "e_rt_p" and "opt_price_step" defined?
- Altera_Forum
Honored Contributor
Thank you , you are right ,e_rt_p is a pointer!! Thank you very much