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

Home » Public Forums » archive » Re: binary sub?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: binary sub? [message #35297] Tue, 03 June 2003 08:25
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Tomson wrote:
> Thank you all. For example,
> I use .compile
> .resolve_all
> .save,/all,file='c:\rsi\idl54\lib\sub.sav'
> to creat sav file name sub.sav in the IDL default path.

save,/routines !!!

Reimar

>
> pro testsav
> sub,a,b
> print,a+b
> end
>
> But when I run testsave, there is a message 'attempt to call undifined
> proceedure/function SUB'. What's wrong?
>
>
>
>
>


--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
Re: binary sub? [message #35298 is a reply to message #35297] Tue, 03 June 2003 06:06 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Tomson (tom2959@21cn.com) writes:

> But when I run testsave, there is a message 'attempt to call undifined
> proceedure/function SUB'. What's wrong?

You forgot to set the ROUTINES keyword on the SAVE command.
You are saving variables, rather than compiled routines.

Here is an article on how to create stand-alone (well,
as stand-alone as IDL will allow) IDL applications.

http://www.dfanning.com/tips/idl_icon.html

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: binary sub? [message #35300 is a reply to message #35298] Tue, 03 June 2003 00:23 Go to previous message
tomson is currently offline  tomson
Messages: 39
Registered: March 2003
Member
Thank you all. For example,
I use .compile SUB
.resolve_all
.save,/all,file='c:\rsi\idl54\lib\sub.sav'
to creat sav file name sub.sav in the IDL default path.

pro testsav
sub,a,b
print,a+b
end

But when I run testsave, there is a message 'attempt to call undifined
proceedure/function SUB'. What's wrong?
Re: binary sub? [message #35301 is a reply to message #35300] Tue, 03 June 2003 00:23 Go to previous message
tomson is currently offline  tomson
Messages: 39
Registered: March 2003
Member
Thank you all. For example,
I use .compile SUB
.resolve_all
.save,/all,file='c:\rsi\idl54\lib\sub.sav'
to creat sav file name sub.sav in the IDL default path.

pro testsav
sub,a,b
print,a+b
end

But when I run testsave, there is a message 'attempt to call undifined
proceedure/function SUB'. What's wrong?
Re: binary sub? [message #35302 is a reply to message #35301] Tue, 03 June 2003 00:18 Go to previous message
tomson is currently offline  tomson
Messages: 39
Registered: March 2003
Member
Thank you all. For example,
I use .compile SUB
.resolve_all
.save,/all,file='c:\rsi\idl54\lib\sub.sav'
to creat sav file name sub.sav in the IDL default path.

pro testsav
sub,a,b
print,a+b
end

But when I run testsave, there is a message 'attempt to call undifined
proceedure/function SUB'. What's wrong?
Re: binary sub? [message #35303 is a reply to message #35302] Tue, 03 June 2003 00:17 Go to previous message
tomson is currently offline  tomson
Messages: 39
Registered: March 2003
Member
Thank you all. For example,
I use .compile
.resolve_all
.save,/all,file='c:\rsi\idl54\lib\sub.sav'
to creat sav file name sub.sav in the IDL default path.

pro testsav
sub,a,b
print,a+b
end

But when I run testsave, there is a message 'attempt to call undifined
proceedure/function SUB'. What's wrong?
Re: binary sub? [message #35304 is a reply to message #35303] Tue, 03 June 2003 00:15 Go to previous message
tomson is currently offline  tomson
Messages: 39
Registered: March 2003
Member
Thank you all. For example,
I use .compile
.resolve_all
.save,/all,file='c:\rsi\idl54\lib\sub.sav'
to creat sav file name sub.sav in the IDL default path.

pro testsav
sub,a,b
print,a+b
end

But when I run testsave, there is a message 'attempt to call undifined
proceedure/function SUB'. What's wrong?
Re: binary sub? [message #35305 is a reply to message #35304] Tue, 03 June 2003 00:13 Go to previous message
tomson is currently offline  tomson
Messages: 39
Registered: March 2003
Member
Thank you all. For example,
I use .compile
.resolve_all
.save,/all,file='c:\rsi\idl54\lib\sub.sav'
to creat sav file name sub.sav in the IDL default path.

pro testsav
sub,a,b
print,a+b
end

But when I run testsave, there is a message 'attempt to call undifined
proceedure/function SUB'. What's wrong?
Re: binary sub? [message #35306 is a reply to message #35305] Mon, 02 June 2003 16:28 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
"Tomson" wrote in message...

> Some of IDL programs are in binary form. Can I compile my subroutine to
> binary file which can be called from other program? How to do that?

As usual, David Fanning has a nice tip on this. Hummmm, wait a minute.
Maybe not. He does have this morsel:

http://www.dfanning.com/ographics_tips/rt_objects.html

But I thought there was a more thorough explanation. I suggest searching
the archives via google groups for something like "compiling run time .sav"


> I think they must run fast.

I wish they did, but they don't.


-Rick
Re: binary sub? [message #35308 is a reply to message #35306] Mon, 02 June 2003 15:07 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Tomson wrote:

> Hi,
> Some of IDL programs are in binary form. Can I compile my subroutine to
> binary file which can be called from other program? How to do that? I
> think they must run fast. TOM

If you speak from idl sav files then you can use our compile routine.

http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_source/idl_ html/dbase/download/compile.tar.gz
or as idl 5.x binary
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_source/idl_ html/dbase/download/compile.sav

If you have a sav file in your search path then this would be same used as
if you have it's sources and call the procedures or function name.

For further routines, binaries and licensing please have a look at
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html

But if you don't speak from idl sav files then you are speaking from dlm's.
Then I would suggest you buy first the book of Ronn Kling,

http://www.kilvarock.com/books/callingCfromIDL.htm

This is an excellent book which shows the most important rules to write your
own dlm's in C.

regards

Reimar

--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Terrible! I donot know I have posted so many times.
Next Topic: Re: IDL with C++

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

Current Time: Wed Oct 08 13:38:40 PDT 2025

Total time taken to generate the page: 0.00734 seconds