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

In reply to Re: Devel::Declare for cygwin; "undefined reference to '_hook_op_check'" by Anonymous Monk
in thread Devel::Declare for cygwin; "undefined reference to '_hook_op_check'" by Boldra

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.