Routines (alphabetical) > Routines: R > RESOLVE_ROUTINE

# RESOLVE_ROUTINE

The RESOLVE_ROUTINE procedure compiles user-written or library procedures or functions, given their names. Routines are compiled even if they are already defined. RESOLVE_ROUTINE looks for the given filename in IDL’s search path. If the file is not found in the path, then the routine exits with an error.

## Syntax

RESOLVE_ROUTINE, Name, /COMPILE_FULL_FILE, /EITHER, /IS_FUNCTION, /NO_RECOMPILE, /QUIET

## Arguments

### Name

A scalar string or string array containing the name or names of the procedures to compile. If Name contains functions rather than procedures, set the IS_FUNCTION keyword. The Name argument cannot contain the path to the `.pro` file—it must contain only a `.pro` filename. If you want to specify a path to the `.pro` file, use the .COMPILE executive command.

## Keywords

### COMPILE_FULL_FILE

When compiling a file to find a specified routine, IDL normally stops compiling when the desired routine (Name) is found. If set, COMPILE_FULL_FILE compiles the entire file.

### EITHER

If set, indicates that the caller does not know whether the supplied routine names are functions or procedures, and will accept either. This keyword overrides the IS_FUNCTION keyword.

### IS_FUNCTION

Set this keyword to compile functions rather than procedures.

### NO_RECOMPILE

Normally, RESOLVE_ROUTINE compiles all specified routines even if they have already been compiled. Setting NO_RECOMPILE indicates that such routines are not recompiled.

### QUIET

Normally, RESOLVE_ROUTINE will generate errors if the routine cannot be found or if it is a system routine. Set QUIET to quietly ignore any errors.

## Version History

4.0 | Introduced
8.4.1 | Added QUIET keyword

## See Also

.COMPILE, RESOLVE_ALL, ROUTINE_INFO