in reply to Embedding Perl in a C application - syntax errors cause program crash

Building using Visual Studio 6, on Windows 2000 perl being "This is perl, v5.6.1 built for MSWin32-x86-multi-thread" the code runs exactly how you might think it would. It's ActiveState's binary distribution.

Bad libaries print me outThe use of non-existant libraries in a 'use' statement in the evaluated code in the C program print the following error at execution time":
ERROR: Can't locate Pooey.pm in @INC (@INC contains: C:/Perl/lib C:/Pe +rl/site/lib .) at (eval 1) line 1. BEGIN failed--compilation aborted at (eval 1) line 1.
Using a statement in the C program, such as "die('Mommie!');" prints out:
ERROR: Mommie! at (eval 1) line 1.
What compiler? Perhaps upgrade perl/ActiveState if possible to the latest?

    --jb

Update: Attempted to clarify statements per AM's request

Replies are listed 'Best First'.
Re: Re: Embedding Perl in a C application - syntax errors cause program crash
by Anonymous Monk on May 09, 2002 at 21:01 UTC
    JB, You could please elaborate ?. Your cryptic response has left my head spinning... What's with the "Bad libaries print me out:" line ? Thanks
      Those errors were the results of the C program that I ran with the embedded perl code suggested in the line. Perhaps it should read "The use of non-existant libraries in a 'use' statement in the evaluated code in the C program print the following error."

      Likewise, the other should probably read "using a die statement in the embedded code in the C program prints":

      Sorry, was a tad tired at the time ;)

          --jb