Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
2,497 Views

error: 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.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor I
687 Views

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 I
687 Views

Thank you , you are right ,e_rt_p is a pointer!! Thank you very much

Reply