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

Home » Public Forums » archive » Re: 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 
Return to the default flat view Create a new topic Submit Reply
Re: How to send a CHARACTER to a C/C++/FORTRAN function via CALL_EXTERNAL? [message #83255 is a reply to message #83242] Wed, 13 February 2013 10:44 Go to previous message
Brian Daniel is currently offline  Brian Daniel
Messages: 80
Registered: July 2009
Member
A character is one byte. You could try the byte data type defined with the appropriate ASCII value.

On Tuesday, February 12, 2013 8:36:16 PM UTC-5, Bogdanovist wrote:
> 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?
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Confusing and suspicious PROFILER output
Next Topic: Excluding Decimal Places in the Values of a Variable

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

Current Time: Sun Oct 12 02:26:35 PDT 2025

Total time taken to generate the page: 0.16382 seconds