why must you compile C with embeded perl the same way?

T

talan

Hi. In the camel book, and in perlembed, it says: "COMPILE THE
PROGRAMS IN EXACTLY THE SAME WAY THAT YOUR PERL WAS COMPILED". Why is
that? Specifically, if you use ActivePerl in Windows, you didn't
compile perl at all. What sort of errors can come up if this isn't
heeded? When is it really important? Thanks.
 
J

Joe Smith

talan said:
Hi. In the camel book, and in perlembed, it says: "COMPILE THE
PROGRAMS IN EXACTLY THE SAME WAY THAT YOUR PERL WAS COMPILED". Why is that?

Take a look at the output from 'perl -V'. There are some compiler flags
that, if they don't match, will prevent you code from properly linking
with the core code. For instance: -Duse64bitint -Dusethreads -Uusemymalloc.
And: useperlio=define d_sfio=undef uselargefiles=define usesocks=undef.

-Joe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top