Re: Inline C



On Thu, May 29, 2008 at 12:53 PM, Rajnikant
<rajnikant_jachak@xxxxxxxxxxxxxxxx> wrote:
Hello everyone,

I have a static library main.a and I want to call one function of this
library from Perl code.
I have configured Inline params link (LIBS,INC etc) and my perl script
compiles fine.

But when I call library function from perl script, it says 'Undefined
subroutine func_name'.
Do you have any guess why its happening?

If required tell me, I'll post source code for same.
snip

It is very difficult to debug code you can't see, so yes, post the
smallest example you can of code that doesn't work. Include code to
create a similar c library as well. Remember, keep it to the barest
minimum of code that demonstrates your problem. We don't want to
debug other problems you may be having just to figure out this one.

--
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.
.



Relevant Pages

  • RE: Segmentation Fault(Core dumped)
    ... But when I started testing my perl script, ... Compilation failed in require at ./test.pl line 13. ... > official business of Sender. ...
    (perl.dbi.users)
  • Re: sharing variables-data perl-asp
    ... Also how do you invoke a perl script from an active server page? ... ASP in Perl. ... Why do you want to shell out to perl when you're already running perl? ...
    (comp.lang.perl.misc)
  • Re: environment variables in perl scripts
    ... Define a BEGIN block in your perl program. ... > perl script, something like: ... > environment variables are there and diag.txt shows ... > This communication is intended for the use of the ...
    (perl.dbi.users)
  • Re: kill process when file count reached,,.
    ... an infinite loop there, ... IMO you could just use readdir and grep in perl. ... You're using awk in backticks in a perl script? ... Perl has a kill builtin, why the hell not use that. ...
    (comp.lang.perl.modules)
  • Re: associating .pl extension with perl
    ... > On my laptop Linux system, I can execute perl scripts ... > associated with perl. ... interpreter that will execute the code contained therein. ... > I discovered this problem when using a perl script that I wrote on my ...
    (comp.lang.perl.misc)