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

Home » Public Forums » archive » How to send a CHARACTER to a C/C++/FORTRAN function via CALL_EXTERNAL?
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
How to send a CHARACTER to a C/C++/FORTRAN function via CALL_EXTERNAL? [message #83265] Tue, 12 February 2013 17:36
Matt Francis is currently offline  Matt Francis
Messages: 94
Registered: May 2010
Member
I'm having trouble getting a CALL_EXTERNAL call to work. I think the issue is the requirement to send a CHARACTER*1. To be specific, I'm trying to call dgels from LAPACK, see here

http://www.netlib.org/lapack/explore-html/d7/d3b/group__doub le_g_esolve.html#ga225c8efde208eaf246882df48e590eac

I know from previous experience that you have to be careful to get all arguments to CALL_EXTERNAL exactly right, making IDL INTs into LONGs, making sure to get single/double precision etc correct. However this one I can't seem to crack. It doesn't surprise me that the IDL STRING is not equivalent to CHARACTER, but how can I send this correctly?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: mgunit 1.3.0 released
Next Topic: حقوق الانسان في الاسلام

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

Current Time: Wed Oct 08 15:15:40 PDT 2025

Total time taken to generate the page: 0.00538 seconds