Yes, I am confused. Please bear with me.

I need to adapt the makefile.pl from a module from CPAN so it can build
with ActivePerl, and modified the file according to the makefile.pl for
my own module. My reward was a spew of compilation errors from various 
header files in the Perl distribution.

In my own makefile.pl I have for some reason shortcutted the CCFLAGS that
comes with ActivePerl, so all those standard settings like 
-DPERL_IMPLICIT_CONTEXT are not present. And I get away with it.

After some investigation I find that if I have 

#include <windows.h>

before the #include of the Perl header files, I don't need all those defines 
for the module to compile. (Which I have to say is somewhat bewildering.)

But just because it works, does not mean that it is best practice. Since
PERL_IMPLICIT_CONTEXT is defined in CCFLAGS, I guess that is what I should
rely on.

I appreciate any comment.


-- 
Erland Sommarskog, Stockholm, esq...@sommarskog.se

Reply via email to