When should you use compilation with -Wc or just simple -c ?

My rule of thumb is, 'all the time, unless I have a very good reason not to'. My editor is set to automatically insert

use strict; use warnings;
automatically for every new Perl file I create. As you're running 5.8, I'd recommend doing the same - I can't count the number of times that a warning has caught me doing something stupid.

How can I resolve this problem, is there something wrong with Smart::Comments?

I've just copied your code and both checked and run it with no errors or warnings, so the problem is likely to be some misconfiguration or corruption with your setup. Unfortunately, I have no concrete idea of where the problem is likely to be. I'd guess that you possibly have a dependency problem with another module (either missing totally, or a version incompatibility). Given the content of the warning, I'd start by looking at your installation of version, as that's one of 5 direct dependencies for Smart::Comments

Hopefully someone with more clue and/or coffee in them will be along with a better answer soon - good luck


In reply to Re: Compiling Smart::Comments with "-Wc" by john_oshea
in thread Compiling Smart::Comments with "-Wc" by neversaint

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.