error: reference to 'group' is ambiguous

[email protected] (Jeffrey Ratcliffe)
Newsgroups perl.xs
Message-ID <CACg2wbxVEp9-Q97nKKrXR5kLaH6txhM52PBdpRKn+rUuywa2Og@mail.gmail.com>
I'm getting this error wrapping a C++ library:

Group.c: In function 'void XS_Foo__Group_new(PerlInterpreter*, CV*)':
Group.c:84: error: reference to 'group' is ambiguous
/usr/include/grp.h:44: error: candidates are: struct group
group.h:41: error:                 class foo::group

/usr/include/grp.h is pulled in perl.h, so obviously compiling with
-nostdlib is no possible.

If I try to make the type unambiguous by specifying foo::group in the
.xs, then I get typemap problems, which get worse if I include foo::
in group in the typemap as well.

Any suggestions?

Thanks for any help.

Regards

Jeff
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.