kopolov has asked for the wisdom of the Perl Monks concerning the following question:
changed the file to executable. ran it and got this:#!/usr/bin/perl -w use lib '/usr/share/perl5/Module/Install'; use Inline C; print "test\n"; greet('Ingy'); __END__ __C__ void greet(char* name) { printf("Hello %s\n", name); }
what am I doing wrong?test Undefined subroutine &main::greet called at ./inlineTst.pl line 5.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: newbi with inline C
by davido (Cardinal) on Mar 09, 2016 at 16:07 UTC | |
|
Re: newbi with inline C (works)
by tye (Sage) on Mar 09, 2016 at 16:02 UTC | |
by kopolov (Acolyte) on Mar 09, 2016 at 16:05 UTC | |
|
Re: newbi with inline C
by runrig (Abbot) on Mar 09, 2016 at 16:07 UTC | |
|
Re: newbi with inline C
by 1nickt (Canon) on Mar 09, 2016 at 15:52 UTC |