I searched and searched to no avail. it is possible that this is a C problem, though if i compile the C code on its own (slightly modified, of course, it works. My perl also worked before i tried adding any C. my code looks like this:
#!/usr/bin/perl -w use Compress::Zlib; use Devel::Size qw(size total_size); #use HTML::SimpleParse; use Inline C => <<END_C; #include <stdio.h> #include <stdlib.h> #include <string.h> #include "./parser.h" char* MyParser(char *url, char* page) { char *pool; int len; int ret; len = strlen(page); // page = (char*)malloc(len); pool = (char*)malloc(2*len+1); // parsing page ret = parser(url, page, pool, 2*len+1); if(ret > 0) return pool; free(pool); } END_C # bunch of perl code $x = MyParser($y) #more perl code
when I try to run i get the error: /usr/bin/perl: symbol lookup error:
/data/c6/***/_Inline/lib/auto/getandParseWithC_pl_e94c/getandParseWith +C_pl_e94c.so: undefined symbol: parser
has anyone seen this before or could someone please offer some pointers? I have been trying to get this to work all night :)

In reply to Help with Inline C by downer

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.