[Pdx-pm] Test::More and Inline

Erik Hollensbe erik at hollensbe.org
Tue Dec 16 14:15:09 PST 2008

On Tue, 2008-12-16 at 14:09 -0800, Thomas Keller wrote:

> use Inline C =>
>             Config  =>
>                     LIBS    => '-lm',
>                     ENABLE => 'AUTOWRAP'
> ;

> But I don't see how Inline knows where to look for the library?
> Does Test::More generate "wrapper" code? Is it only in memory, or can
> it be retrieved? 
> ... If so would this be useful for building more extensive programs
> using C functions?

Inline there is using the -l switch to cc which links your inline code
against libm, which has fmin() and fmax().

cc manages this itself, and Inline at that point has very little to do with it (although, you can change htat with the -L switch to cc).




More information about the Pdx-pm-list mailing list