develooper Front page | perl.module-authors | Postings from May 2004

ExtUtils::Embed and C++

Thread Next
From:
SilvioCVdeAlmeida
Date:
May 29, 2004 14:17
Subject:
ExtUtils::Embed and C++
Message ID:
40B8FF52.DD8B55E6@graaph.arq.br
Hello,

I'm starting a project where a C++ library would have to
instatiate a pesistent Perl interpreter.

I found an error that's easily reproductible by trying the
example "Persistent Interpreter" from perldoc perlembed, but
compiling it with g++ intead of gcc.

The error is as follows:

In file included from /usr/include/math.h:109,
                 from
/usr/local/lib/perl5/5.8.3/i686-linux-thread-multi-64int-ld/CORE/perl.h:2839,
                 from persistent.c:3:
/usr/local/lib/perl5/5.8.3/i686-linux-thread-multi-64int-ld/CORE/perl.h:1330:
previous
   declaration of `long double modfl(long double, long double*)'
with C++ 
   linkage
/usr/include/bits/mathcalls.h:116: conflicts with new
declaration with C 
   linkage
/usr/include/bits/mathcalls.h:116: declaration of `long double
modfl(long 
   double, long double*) throw ()' throws different exceptions
/usr/local/lib/perl5/5.8.3/i686-linux-thread-multi-64int-ld/CORE/perl.h:1330:
than
   previous declaration `long double modfl(long double, long
double*)'


I have a vague idea of what it stands for, but nothing about how
to fix it.

Any ideas?


Silvio

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About