Though this is more difficult to diagnose without seeing any of your
source code, I suspect this is an issue with scope in Perl and not
related specifically to Inline::C.  Are you attempting to access the
subroutine in a different package than the one in which you defined it
without exporting?  See http://perldoc.perl.org/perlmod.html#Packages
for more information on how packages and namespaces work in Perl.  You
may also consider either providing us with the source code so we can
diagnose the issue properly or posting a complete question with
exemplar code to
http://www.perlmonks.com/?node=Seekers%20of%20Perl%20Wisdom.

Ken

On Fri, Mar 26, 2010 at 5:20 AM, Milena <mil...@digsys.bg> wrote:
> Hi,
>
> I want to use Inline::C perl module.
> When I use it in perl program (program.pl), the C function ( c_func() )
> works correctly.
> When I use the same code in perl module (module.pm), when I try to call 'C'
> function , I get the error: Undefined subroutine c_func.
> Can you help me?
> Thanks in advance.
> Milena
>

Reply via email to