I have a perl xs module that, up until recently, has been built on linking to a vendor's static libraries (.a) using gcc. The machine that I build it on is a Sun box.

However, they have recently started shipping only the dynamic libraries (.so). I've fixed my Makefile.PL to use these new libraries and built it all again.

The LIBS entry changed from
'LIBS' => ["-L$DIR/acelib -lace -lz4t -lffstub -L$DIR/comlib -ldi +racc -lmas -lliud -llgen -loptec -lm -lpsthr"],
to...
'LIBS' => ["-L$DIR -lace"], # libace.so

All seems to work great. However, the vendor documentation comes with a statement saying that they built their software using the "Sun One version 8" compiler and that I should be using it too. (It says they used gcc for Linux builds) It also says...

"Before using ACE 7.50c, you must ensure that your C++ Standard Library (runtime version) is compatible with the new compilers." (for me this would be the Sun One v8)

and...

"Verify that your system administrator has obtained an appropriate C++ runtime version of the appropriate compiler from your operating system vendor..."

Why would it matter what compiler I use?


In reply to C compiler for xs by mifflin

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.