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

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

Altera_Forum
Honored Contributor II
4,126 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
2,316 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?

0 Kudos
Altera_Forum
Honored Contributor II
2,316 Views

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

0 Kudos
Reply