Hi holandes777,

use Inline C => Config => LIBS => '-libhasp_linux.a';
That should be:
use Inline C => Config => LIBS => '-lhasp_linux';
and if it still can't find the library then you'll need to also provide the fully qualified location of libhasp_linux.a.
use Inline C => Config => LIBS => '-L/full/path/to/library -lhasp_linu +x';
However, your immediate problem seems to be that your compiler doesn't like the C file that xsubpp is creating.

Which version of perl are you running ? ... are you using the compiler that was used to build your perl ?

One thing you could do is to install ExtUtils::ParseXS and see if that helps. (That should mean that ExtUtils::ParseXS will write the C file, but I don't know whether that will make any difference.)

Update: I was just wondering whether Inline::C built and installed ok for you (passing all tests). Seems to me that, with errors like you're getting, make test should have produced numerous failures.

Cheers,
Rob

In reply to Re: Inline::C produces compilation errors by syphilis
in thread Inline::C produces compilation errors by holandes777

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.