- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I would like to define variables inside a for loop like this:
if(int i = 0;i<10;i++){
//FOO
}
Therefore I tried to add Command Line Custom Flags like "-std=gnu11" / "-std=c11":
But it brings me the following error:
"Expected expression before int"
BR
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @PascalS ,
Can you please make sure that the syntax you are using is correct?
You have used "if" instead of "for" which is why you are facing this error.
Can you please make this correction and try the build operation again?
Warm Regards
Alen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @PascalS ,
Can you please make sure that the syntax you are using is correct?
You have used "if" instead of "for" which is why you are facing this error.
Can you please make this correction and try the build operation again?
Warm Regards
Alen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @PascalS ,
Glad your query is resolved.
Please feel free to post any queries or issues you may have on Infineon products in the community and we will be happy to help.
Thanks and Regards,
Alen