Anyone have any ideas why I am getting the "unresolved symbols"?

Thanks,
   -Keith

Keith.Griffin wrote:
Hi,
I only changed the 'main' function and removed a lot of code replacing it
with a simple 'match' test. Below is the contents of 'main' now.

Thanks,
  -Keith

       main (int argc, char **argv, char **env)
       {
           PerlInterpreter *my_perl = perl_alloc();
           char *embedding[] = { "", "-e", "0" };
           AV *match_list;
           I32 num_matches, i;
           SV *text = NEWSV(1099,0);
           STRLEN n_a;
           char pattern[] = "sd[ab][0-9]*";


           perl_construct(my_perl);
           perl_parse(my_perl, NULL, 3, embedding, NULL);

           sv_setpv(text, "sda1");
          if (match(text, pattern))
              printf("MATCH!!.\n\n");
           else
              printf("NO MATCH!! (dang).\n\n");

           SvREFCNT_dec(text);
           PL_perl_destruct_level = 1;
           perl_destruct(my_perl);
           perl_free(my_perl);
       }


Chas. Owens wrote:
On Mon, Apr 20, 2009 at 10:44, Keith.Griffin <keith.grif...@oracle.com> wrote:
Hi,
I have copied the example "match.c" from "man perlembed" to my system and
made a minor adjustment to the source to test the match code. I have
attempted
to build this code and the build is failing due to "undefined reference's".
Could
anyone let me know what the problem is please?
snip

Did the unmodified version work?  What changes did you make (diff -u
orig yours)?



--
Keith Griffin
603-899-6903

/
/


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to