comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Running an IDL Project
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Running an IDL Project [message #40482 is a reply to message #40467] Tue, 10 August 2004 08:49 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Edwin writes:

> Well I tried going to options > run command > and typing in "main"
> without the quotation marks. and then compiled all. andthen pressed
> run. here's what I got:
>
> % Compiled module: MPFIT_DUMMY.
> % Compiled module: MPFIT_RESETPROF.
> % Compiled module: MPFIT_SETMACHAR.
> % Compiled module: MPFIT_CALL.
> % Compiled module: MPFIT_FDJAC2.
> % Compiled module: MPFIT_ENORM.
> % Compiled module: MPFIT_QRFAC.
> % Compiled module: MPFIT_QRSOLV.
> % Compiled module: MPFIT_LMPAR.
> % Compiled module: MPFIT_TIE.
> % Compiled module: MPFIT_DEFITER.
> % Compiled module: MPFIT_PARINFO.
> % Compiled module: MPFIT_COVAR.
> % Compiled module: MPFIT.
> % Compiled module: MPEVALEXPR.
> % Compiled module: MPFITEXPR_EVAL.
> % Compiled module: MPFITEXPR.
> % Compiled module: AUTO_LINE.
> % Compiled module: RUNNING_AVERAGE.
> % Compiled module: CALIB_WAVE.
> % Compiled module: INT_INT.
> % Compiled module: $MAIN$.
> % Compiled module: MY_LINE.
> % Compiled module: MY_ROI.
> % Compiled module: PEAK_FINDER.
> % Compiled module: PLOT_FC.
> % Compiled module: PLOT_ROI.
> % Compiled module: READ_FC.
> % Compiled module: READ_ROI.
> % Compiled module: READ_CALIB.
> % Compiled module: READ_HEADER.
> % Compiled module: $MAIN$.
> % Library file does not contain a procedure or function.
> % Compiled module: MAIN.
> % Attempt to call undefined procedure/function: 'MAIN'.
> % Execution halted at: $MAIN$ 1
> C:\IDL\SPE_Examiner\main.pro

Well, it looks like your MAIN program is not a procedure or
a function. :-)

My guess is that it is a main-level program. In other words,
it is a program module that doesn't start with a PRO or FUNC
definition line. It starts with an IDL command. Is this right?

If so, then put "PRO MAIN" as the first line of that file
and try again.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDLWAVE environment variables
Next Topic: Combining subimage data to corresponding X and Y location

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 13:37:21 PDT 2025

Total time taken to generate the page: 0.48155 seconds