Inline C on Windows - what am i doing wrong?

From: SketchySteve (nospamplease_at_no.com)
Date: 03/31/04


Date: Wed, 31 Mar 2004 22:27:13 +0100

Hi there,

I have a fairly simple C function which I need to itegrate into a perl
script. I have decided to use Inline for this task.

First I needed nmake for Visual Studio 6.0 C++. I found this file here
http://download.microsoft.com/download/vc15/Patch/1.52/W95/EN-US/Nmake15.exe
installed it and set a path variable so it could be found.

After installing Inline and nmake I am still unable to run simple hello
world c progs or any other type either. I always get this message.

Had problems bootstrapping Inline module 'hello_pl_b1a6'

Can't locate loadable object for module hello_pl_b1a6 in @INC (@INC
contains: C:\_Inline\lib C:/Perl/lib C:/Perl/site/li
b .) at C:/Perl/site/lib/Inline.pm line 500

 at C:\hello.pl line 0
INIT failed--call queue aborted.

This is a very urgent problem and help would be appreciated greatly. Am
really wracking my brain to work out what might be going wrong. Could it be
that my version of Perl was not compiled with nmake (i'm using 5.8 with
windows XP)?

Here is the program giving the error message

use Inline C;
    greet('Ingy');
    greet(42);
    __END__
    __C__
    void greet(char* name) {
      printf("Hello %s!\n", name);
    }

This is from the inline cook book and all other program fail aswell (in the
same way).

Thanks in advance for your help

Steve



Relevant Pages

  • Re: Perl::Inline compiling problems
    ... use Inline; ... void dumb3() { ... Running 'perl try.pl' produces: ... The source file needs to be in a separate directory from ...
    (comp.lang.perl.misc)
  • Calling External DLL functions in Perl using Inline
    ... I am trying to call a DLL function from Perl using Inline as follows ... InlinetestLib is a test dll with 1 exported function fnInlinetestLib() ... mkdir blib\lib ...
    (comp.lang.perl.modules)
  • Re: Windows: Perl:Inline
    ... > A problem was encountered while attempting to compile and install your ... The guys on the inline mailing list ... Are you running ActiveState perl? ...
    (comp.lang.perl.modules)
  • RE: Perl equivalent of "sed -f" or "awk -f"
    ... I'd like to apply a series of inline edits to a file in Perl. ... commandfile inputfile", however, I could not find an equivalent in Perl. ...
    (perl.beginners)
  • perl load of external librarie (unix/linux)
    ... I need a reminder of how it normally works under unix/linux with Perl ... (and in this case INLINE C) ... The error message indicated that an entry point of a fixed well-known ...
    (perl.beginners)