Re: Inline C



On May 30, 2:53 am, rajnikant_jac...@xxxxxxxxxxxxxxxx (Rajnikant)
wrote:
.
.
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'.

In addition to what Chas recommended, it's a good idea to always
include the following at the beginning of your Inline::C scripts:

use Inline C => Config =>
BUILD_NOISY => 1;

Then (and only then) will you get to see helpful output (that Inline,
by default, conceals) as a script *successfully* builds. This helpful
output includes things like warnings (both at the 'perl Makefile.PL'
stage, and during the compilation phase). You'll probably get to see
that "helpful output" anyway, if the script fails to compile - but you
won't see any of it if the script compiles (even if it subsequently
suffers a runtime failure).

If you add the BUILD_NOISY configuration call to your existing script,
you will still need to do something to make that script recompile -
either rename the script, or make a change to the whitespace in the C
code.

Cheers,
Rob

.



Relevant Pages

  • Re: Calling External DLL functions in Perl using Inline
    ... >> and the code compiles and runs the same. ... > I think that script builds ok when you remove the LIBS directive because ... > be different under Cygwin. ... >> How do are you able to include your own header files? ...
    (comp.lang.perl.modules)
  • Re: DBD-Oracle-1.14 and Oracle 9i
    ... I have written a shell script which compiles & installs perl from source using ... Solaris 9 because I wanted to customize some other things. ...
    (perl.dbi.users)
  • Re: MEX error message
    ... compiles the stuff with 3.4 which causes some incompatibilities. ... and move the old libraries out of the way, so matlab uses the new, ... Are those runtime libraries just relevant to MEX, ... another solution which comes to my mind: the matlab start script sets up the LD_LIBRARY_PATH. ...
    (comp.soft-sys.matlab)
  • Re: Number of Objects in Static Link Library
    ... Write yourself a script that generates and compiles ... never mind the fact that I'm also fishing for: ... a)Any advice about how to better structure a project or a library. ...
    (comp.unix.programmer)
  • Re: applescript discussion
    ... switch as osascript takes over and compiles and executes the script ... involves a lot of overhead and is slow. ... Passing parameters via the osascript command ...
    (comp.sys.mac.system)