MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: MLGetByteString

  • To: mathgroup at
  • Subject: [mg56554] Re: MLGetByteString
  • From: "Jens-Peer Kuska" <kuska at>
  • Date: Fri, 29 Apr 2005 03:19:52 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <d4q260$ok9$>
  • Sender: owner-wri-mathgroup at


assuming, that you are useing the same header for 
Windows and
Linux, define MLPROTOTYPES under Linux.


"OT" <montoz at> schrieb im 
Newsbeitrag news:d4q260$ok9$1 at
>I found a little inconsistency in Mathematica 5.1 
>MathLink about the
> function MLGetByteString, since looking in the 
> Help Browser I found both
> these two different prototypes:
> int MLGetByteString( MLINK link, unsigned char 
> **s, long *n, long spec)
> int MLGetByteString( MLINK link, const unsigned 
> char** sp, long* n, long
> spec)
> Now, I wrote my C code assuming that the first 
> prototype was right, and
> the code works perfectly under Windows XP; 
> problems arise when I try to
> compile the same C code on a different computer 
> running Linux and
> Mathematica 5.0, since I get several warnings 
> when compiling.
> It seems that the right prototype for 
> MLGetByteString under Linux is the
> second one.
> Now, my question is: how can I wright a code 
> suitable for both the platform?
> It's not beautiful to see all these warnings...
> thanks in advance,
> andrea

  • Prev by Date: Re: arrange lists side by side
  • Next by Date: Re: arrange lists side by side
  • Previous by thread: MLGetByteString
  • Next by thread: AW: Converting a mapping into a well-defined function