On Fri, 17 Dec 1999 22:09:35 +1100, Mitch Davis <[EMAIL PROTECTED]> wrote:

>Hello Perl XS readers,
>
>When I put an "OUTPUT:" into my VISA.xs file, I get this compile
>message:
>
>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
>Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
>
>VISA.c
>VISA.c(156) : error C2065: 'XFree' : undeclared identifier
>
>Here's the paragraph from the .xs file:
>
>long
>viOpenDefaultRM(vi)
>    unsigned long *vi
>  OUTPUT:
>    vi


This is a bug in the typemap, which has already been fixed in the
development version:


http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/1999-09/msg01156.html

Just remove the call to XFree() from the typemap:

 T_OPAQUEPTR
-       sv_setpvn($arg, (char *)$var, sizeof(*$var)), XFree((char *)$var);
+       sv_setpvn($arg, (char *)$var, sizeof(*$var));

Jan

Reply via email to