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

Home » Public Forums » archive » mpfitevalexpr not compiled
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: mpfitevalexpr not compiled [message #86087 is a reply to message #86084] Wed, 02 October 2013 04:36 Go to previous messageGo to previous message
Heinz Stege is currently offline  Heinz Stege
Messages: 189
Registered: January 2003
Senior Member
On Wed, 2 Oct 2013 02:30:25 -0700 (PDT), Mats Löfdahl wrote:

> I'm using Craig Markwardt's mpfitexpr and I'm trying to use also the companion function mpevalexpr. The problem is that after using mpfitexpr, mpevalexpr is not compiled.
>
> My program stops with the error message:
>
> % Variable is undefined: MPEVALEXPR.
>
> However, right after the program has stopped, I can use it:
>
> IDL> ys = mpevalexpr(fitexpr, xc, p)
>
Do you use the compile option "strictarr" (or "IDL2") in your program
(which calls mpevalexpr and then throws the error message)? If not,
IDL don't know that mpevalexpr is a function, if it compiles your
program before mpfitexpr. If this is true and you don't want to use
strictarr, you can try to explicitly declare mpevalexpr as a function.
Add the statement
forward_function mpevalexpr
in the header of your program to explicitly declare mpevalexpr as a
function.

Cheers, Heinz
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New Coyote Store Up and Running
Next Topic: Converting a string to variable name

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

Current Time: Wed Oct 08 14:10:15 PDT 2025

Total time taken to generate the page: 0.00187 seconds