I am trying to compile a Fortran code and the error attached always appears.
Thanks in advance.
Please simply use /O3.
The longer spelling, /optimize, was deprecated several releases back and then removed in the following release.
In general, if you use "ifort /help" you can see all the valid options, and that may help in the future.