I am adding a module XML::Parser statically in my Perl which I build from its source. To build Parser statically I removed DynaLoader and bootstrap from Parser.pm and Expat.pm files.
I have included LINKTYPE => 'static' in Makefile.PL. It builds successfully. But when i am trying to use this module after build its throwing error as "Undefined subroutine &XML::Parser::Expat::ParserCreate called at C:/Perl/lib/XML/Parser/Expat.pm line 66."
I have linked Expat.lib to my tool and included it as
newXS("XML::Parser::Expat::bootstrap", boot_XML__Parser__Expat, file)
What goes wrong after building the module statically. I tested using 'nmake test_static' which fails but 'nmake test_dynamic' passes without any error.