[Swig-user] Perl wrap file error: error: expected ')' before 'value'

1 view
Skip to first unread message

Chris Miller

unread,
Mar 20, 2012, 3:09:37 PM3/20/12
to swig-user

I'm having trouble getting a wrap file to compile with Swig 2.04 on
CentOS 6.2. Here are the steps followed :

# swig -perl5 example.i
# gcc -c example_wrap.c -I. -I/usr/lib/perl5/CORE -Dbool=char -fpic
-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

labjackusb_wrap.c:2241: error: expected â)â before âvalueâ

On line 2241 is the following :

SWIG_From_bool SWIG_PERL_DECL_ARGS_1(bool value)
{
SV *obj = sv_newmortal();
if (value) {
sv_setsv(obj, &PL_sv_yes);
} else {
sv_setsv(obj, &PL_sv_no);
}
return obj;
}

I was unable to find any specific info about this error. I am
already using several pointer and array functions from cpointer.i
and carrays.i in the interface file.

I can't get past this hangup. Thanks in advance for any help provided.

Chris

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Swig-user mailing list
Swig...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user

Reply all
Reply to author
Forward
0 new messages