Thanks for your help - I've arrived at some new questions as a result!

1) "perl -MExtUtils::Embed -e ccopts -e ldopts" does not work for me when I use it to pass parameters to my cc statement. The cc compiler complains of many unknown options. I took a look at the Config.pm file, and it references the gcc compiler. I don't believe we have that installed on our UNIX server - perhaps the admins loaded a precompiled binary of Perl, rendering ExtUtils useless for me in this fashion?

2) I did use ExtUtils to produce an xsinit.c file, as follows:

perl -MExtUtils::Embed -e xsinit -- -o xsinit.c -std
But I can not compile this. When I try
cc xsinit.c codeGen.c -o codeGen -L/lib/pa1.1 -L/usr/local/lib -I/usr/ +local/include -I/opt/perl/lib/5.6.1/PA-RISC1.1-t hread-multi/CORE -L/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/auto/Dy +naLoader/DynaLoader.a -L/opt/perl/lib/5.6.1/PA-RISC1.1-threa d-multi/CORE -L/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/CORE/libper +l.so -lmalloc -ldld -ldld -lperl -lm -lsec -lnsl -lnm -lpthr ead -lc -lndir -lcrypt -Dbool=char -DHAS_BOOL
(gruesome, I know - I've tried to link/add every possible library) I get the following:
xsinit.c: codeGen.c: /usr/ccs/bin/ld: Unsatisfied symbols: boot_DynaLoader (first referenced in xsinit.o) (code)
My goal is to compile "codeGen.c", which contains an embedded Perl interpreter. What should I be loading in order to use boot_DynaLoader w/o compile problems? I can't think of any more directories to include.

3) this problem only seems to arise when I attempt to use glob(). What is it about that function that would result in these errors?

Thanks again good monks- I very much appreciate the help

MatthewFrancis


In reply to Re: Embedding Perl Interpreter/DynaLoader by MatthewFrancis
in thread Embedding Perl Interpreter/DynaLoader by MatthewFrancis

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.