|
|
| There's more than one way to do things | |
| PerlMonks |
Re: A Practical Guide to Compiling C based Modules under ActiveState using Microsoft C++by Corion (Pope) |
| on Apr 11, 2003 at 06:26 UTC ( #249821=note: print w/ replies, xml ) | Need Help?? |
|
Obviously, it also helps to know a bit of C to successfully install modules that fail make. I don't know much C, but the stuff that will most likely bite you when installing/compiling C extensions are platform / header file differences. My approach to hacking at a C extension is, that the C code in principle works and that the included Perl tests exercise the extension behaviour good enough to uncover most things I break when dabbling. Things that I did to get stuff to compile :
So don't be afraid to change bits in the C header files to adjust the C code to what you think your machine actually is, but do pass these changes upstream to the module author - the next release might have your change already built in - and also be prepared for bugs in your modified versions - keep track of what you changed and which extensions you compiled yourself.
In Section
Tutorials
|
|
||||||||||||||||||||