Hi,
 
I have a CPAN-style package I'm trying to make using the instructions from the 
Inline perldoc.  It includes C++ code (and uses Inline:CPP).  The code compiles 
fine in my test script using Inline directly, but I'd rather distribute it 
without an Inline dependency.  
 
It seems to be going pretty well except that `make disttest` doesn't want to 
compile the accompanying .cpp and .h files (which I added to the MANIFEST to 
get them included in the package) once they're prepared for packaging.  Seems 
like it's not using the right compiler, because it's giving me trouble with 
template-looking stuff (see the error messages below).
 
Any recommendations?
 
Randy
 
 
/home/y/bin/perl -I/home/y/lib/perl5/5.6.1/i386-freebsd 
-I/home/y/lib/perl5/5.6.1 /home/y/lib/perl5/5.6.1/ExtUtils/xsubpp  -typemap 
/home/y/lib/perl5/5.6.1/ExtUtils/typemap Referrals.xs > Referrals.xsc && mv 
Referrals.xsc Referrals.c
g++ -c  -fno-strict-aliasing -I/home/y/include -I/usr/local/include 
-march=pentiumpro -pipe -g -O2    -DVERSION=\"0.80\"  -DXS_VERSION=\"0.80\" 
-DPIC -fpic -I/home/y/lib/perl5/5.6.1/i386-freebsd/CORE  Referrals.c
In file included from Referrals.xs:18:
../../../../referrals.h:59: syntax error before `;'
../../../../referrals.h: In method `bool hashstr::operator ()(const string &) 
const':
../../../../referrals.h:61: implicit declaration of function `int 
charHasher(...)'
../../../../referrals.h: At top level:
../../../../referrals.h:65: syntax error before `;'
In file included from Referrals.xs:19:
../../../../referrals.pcc: In function `struct SV * _process_prop_data(const 
char *, const char *, SV *, const char *)':
../../../../referrals.pcc:39: `Results' undeclared (first use this function)
../../../../referrals.pcc:39: (Each undeclared identifier is reported only once
../../../../referrals.pcc:39: for each function it appears in.)
../../../../referrals.pcc:39: parse error before `;'
../../../../referrals.pcc:40: `results' undeclared (first use this function)
../../../../referrals.pcc:112: parse error before `::'
../../../../referrals.pcc:113: `i' undeclared (first use this function)
^C*** Referrals.o removed

Reply via email to