|
Application Programming: Creating IDL Projects |
|
The build order of a project determines the order in which the files will be compiled. In some cases, you might not be able to run all the files in your project because of dependencies on the order in which they are compiled. For example, if the file main.pro contains:
Pro main x=1 y=AddTen(x) Print, x End
and file AddTen.pro contains:
Function AddTen, x x=x+10 End
IDL can't tell if the statement y=AddTen(x) is referring to a variable named AddTen or a function named AddTen. Unless AddTen is compiled before main, you will get a "Variable undefined" error message.
To select the build order for the files in your project, complete the following steps:
Open Project. Select the path and name of your project file.
Save Project.
| Note If the Compile File option is deselected, the file will not show in the Build Order window. For more information on file properties, see Setting the Properties of a File. |
IDL Online Help (March 06, 2007)