in reply to Devel::Declare for cygwin; "undefined reference to '_hook_op_check'"

1. cpanm App::pmuninstall
2. pm-uninstall ExtUtils::Depends B::Hooks::OP::Check
3. cpanm ExtUtils::Depends
4. cpanm -v B::Hooks::OP::Check

capture the full path of CORE/cygperl5_14.dll
capture the full path of B/Hooks/OP/Check/Check.dll

5. cpanm --look Devel::Declare --mirror http://search.cpan.org/CPAN
6. perl Makefile.PL
7. make

You will see error from the g++ command. copy it and modify it like below and run it.

g++-4 --shared -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,--enable-auto-image-base -L/usr/local/lib -fstack-protector Declare.o -o blib/arch/auto/Devel/Declare/Declare.dll \
## Replace with full path
--> CORE/cygperl5_14.dll \
--> B/Hooks/OP/Check/Check.dll

Press Enter without Error then you are good to move forward to test and install

Finally,

make test
make install
  • Comment on Re: Devel::Declare for cygwin; "undefined reference to '_hook_op_check'"