|
[Date Index]
[Thread Index]
[Author Index]
Re: MLGetByteString
- To: mathgroup at smc.vnet.net
- Subject: [mg56554] Re: MLGetByteString
- From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
- Date: Fri, 29 Apr 2005 03:19:52 -0400 (EDT)
- Organization: Uni Leipzig
- References: <d4q260$ok9$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
assuming, that you are useing the same header for
Windows and
Linux, define MLPROTOTYPES under Linux.
Regards
Jens
"OT" <montoz at invaliddomain.com> schrieb im
Newsbeitrag news:d4q260$ok9$1 at smc.vnet.net...
>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
|