[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cant find functions in lib



Has it really to be the LAST program module ? I think it is working also
with other "places" in the file. Or will the module only find functions in
freont of him in the file?

Dominik
"David Fanning" <davidf@dfanning.com> schrieb im Newsbeitrag
MPG.153619385014b126989dcc@news.frii.com">news:MPG.153619385014b126989dcc@news.frii.com...
> Dominik (dpaul@ukl.uni-freiburg.de) writes:
>
> > I am using IDL for imaging in Nuklear Medicine. We wrote a big library
> > (NukMed.pro) with some functions and dont wont to compile it each time.
So
> > we thought to put it in the lib directory of IDL, where IDL itself puts
all
> > its *.pro.
> > But when we try to use it, IDL doesnt find the functions we used the
whole
> > time. Do I have to precompile it or to sign up in a special list for all
> > *.pro files?
>
> If you find you have to "compile" the code before
> you can use it, then the code is not written correctly.
> Putting it in the lib directory won't help, alas. :-(
>
> If code is written so that the *last* program module in
> the file has the same name as the program file, which will
> also be the "name" of the command you are trying to build,
> then this program will be automatically compiled when
> the "command" is used, assuming the file is anywhere
> in the !PATH.
>
> You never have to pre-compile anything in IDL, assuming you
> have written it correctly.
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting
> Phone: 970-221-0438 E-Mail: davidf@dfanning.com
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Toll-Free IDL Book Orders: 1-888-461-0155