Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
15796 Discussions

error: invalid operands to binary expression ('double *' and 'double')

Altera_Forum
Honored Contributor II
2,999 Views

:(:(:(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 II
1,189 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 II
1,189 Views

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

Reply