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

Home » Public Forums » archive » Re: chi^2 minimisations & calling c
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: chi^2 minimisations & calling c [message #36689 is a reply to message #36686] Wed, 15 October 2003 10:52 Go to previous messageGo to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
"Dan B" wrote ...

> If I was running the c program from the command line I would pass the
> parameters to it there e.g.
>
>> ./program x y z a b c
>>
>
> forgive my ignorance but is this an example of argc-argv calling
> convention?


It appears you have an executable that may or may not call a shared library?
If you do have a shared object file (.so, .dll) , is there a specific reason
you want to directly call it's functions? Or are you possibly confusing
CALL_EXTERNAL which calls functions in external libraries with SPAWN which
executes external programs?


Since you have a command line executable you might think about using SPAWN.
Something like:

x=0.
y=0.
z=0.
a=1
b=2
c='outfile.dat'

SPAWN, '/path/to/program ' + STRTRIM(x,2) + ' ' + STRTRIM(y,2) +
STRTRIM(z,2) + ' ' + STRTRIM(a,2) + ' ' + STRTRIM(b,2) + c


-Rick
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problems with 3D-Plot
Next Topic: How to get actual widget size?

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

Current Time: Wed Oct 08 17:06:51 PDT 2025

Total time taken to generate the page: 0.00523 seconds