downer has asked for the wisdom of the Perl Monks concerning the following question:
when I try to run i get the error: /usr/bin/perl: symbol lookup error:#!/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
has anyone seen this before or could someone please offer some pointers? I have been trying to get this to work all night :)/data/c6/***/_Inline/lib/auto/getandParseWithC_pl_e94c/getandParseWith +C_pl_e94c.so: undefined symbol: parser
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help with Inline C
by Somni (Friar) on Oct 15, 2007 at 03:38 UTC | |
by downer (Monk) on Oct 15, 2007 at 13:06 UTC | |
by syphilis (Archbishop) on Oct 15, 2007 at 13:43 UTC | |
by downer (Monk) on Oct 15, 2007 at 14:37 UTC | |
by syphilis (Archbishop) on Oct 15, 2007 at 22:54 UTC | |
by downer (Monk) on Oct 15, 2007 at 14:49 UTC | |
by downer (Monk) on Oct 15, 2007 at 15:02 UTC | |
by mwah (Hermit) on Oct 15, 2007 at 15:55 UTC | |
by syphilis (Archbishop) on Oct 15, 2007 at 23:01 UTC | |
| |
by roboticus (Chancellor) on Oct 15, 2007 at 13:23 UTC |