Share
 
 

About Safe Optimization Warning Messages (Visual LISP IDE)

If optimized compilation is enabled and the compiler finds a condition that forbids a certain level of optimization, it issues a warning message.

Note: The Visual LISP IDE is available on Windows only.

For example, if the function calculate-corner cannot be linked because the compiler found two definitions for the function, you will see:

;*** WARNING: Cannot LINK calculate-corner;
Two DEFUNs found.
See Another DEFUN

Each line of the previous warning message guides you to a different code segment. For example:

  • ; *** WARNING: Cannot LINK calculate-corner; - shows the function call that could not be linked.
  • ; Two DEFUNs found. - shows the first defun found for function calculate-corner.
  • ; See Another DEFUN - shows the second defun found for function calculate-corner.

When the compiler works in Safe Optimization mode and finds a problem condition, the warning starts with:

; *** WARNING: Safe: Cannot 

If Safe Optimization is disabled, but message mode is set to Full report, the same warnings are prefixed by:

; *** WARNING: Dangerous 

If you disable Safe Optimize mode, these problematic conditions result in compiler warnings.

Was this information helpful?