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

Home » Public Forums » archive » Re: Cant find functions in lib
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: Cant find functions in lib [message #24544 is a reply to message #24538] Thu, 05 April 2001 06:06 Go to previous messageGo to previous message
Jaco van Gorkom is currently offline  Jaco van Gorkom
Messages: 97
Registered: November 2000
Member
Dominik wrote:
...
>> 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.
...
> If somebody wants to know the solution: The procedure must have the same
> name as the file. So only on function in the file is accessible in the file.
> Of course the lib has to be in a right directory.

Right. There are a few more catches: the procedure with the same name as the
file must be the *last* procedure in the file, since IDL will stop compiling
after that. For a large library, you could put each function in its own file,
and put all those files in a directory NukMed. IDL will find all functions
automatically, provided that the NukMed directory is added to the path (in the
IDLDE preferences, in an IDL startup script or in an environment variable).

The other catch: the filenames must be all lowercase in order for IDL to find
them.

cheers,
Jaco
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Was: Index... Now: Vectorize, huh?
Next Topic: why is using objects so much slower ?

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

Current Time: Wed Oct 08 18:00:29 PDT 2025

Total time taken to generate the page: 0.01022 seconds