- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
:(:(:(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.Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you , you are right ,e_rt_p is a pointer!! Thank you very much

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page