- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am getting this error below when using the latest and greatest icc. Surely it should be able to handle this situation? I did some googling and seems it has to do with C99 standard. I guess I am confused on why this isn't the default nowadays?
/pastix/build/kernels/core_crqrrt.c(234): error: expected an expression
for(int i=0; i<2; i++)
^
/pastix/build/kernels/core_crqrrt.c(234): error: identifier "i" is undefined
for(int i=0; i<2; i++)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for reaching out to us.
We would like to inform you that, icc can handle int declarations inside for loops. However, if your current std standard is configured to std version older than c99, you would face issues like below. (mentioned by you).
error: expected an expression / error: identifier "i" is undefined
We would like to suggest you to use icc compiler with -std version c99 or the other latest versions so that the code compiles successfully.
Best Regards,
Shanmukh.SS
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for reaching out to us.
We would like to inform you that, icc can handle int declarations inside for loops. However, if your current std standard is configured to std version older than c99, you would face issues like below. (mentioned by you).
error: expected an expression / error: identifier "i" is undefined
We would like to suggest you to use icc compiler with -std version c99 or the other latest versions so that the code compiles successfully.
Best Regards,
Shanmukh.SS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for accepting our solution. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.
Best Regards,
Shanmukh.SS

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