Skip to content

IDL Problem Code 40 with alias illegal-comp-opt

Want to disable me? Check out the configuration guide to learn more.

Execution Error

This is a fatal error that prevents IDL from compiling or running code

This issue detects when you specify a compile option for compile_opt that is illegal or does not exist.

This problem code is meant to be used with the latest version of IDL which has some new compile options

Here's an example of how to reproduce the error:

idl
pro myPro
  compile_opt idl2, bad_opt
  ;                 ^^^^^^^ illegal compile option

  ; ... logic

end

Which you can fix by removing the bad option:

idl
pro myPro
  compile_opt idl2

  ; ... logic

end

Licensed under MIT.