On 26/05/02 16:50 +0200, Hendrik Van Belleghem wrote:
> use Inline Config => FORCE_BUILD => 1,
>                      CLEAN_AFTER_BUILD => 0;
> 
> use Inline C => Config => LIBS => '-L/usr/lib -lgd';
> #I tried variations of the above line
> use Inline C => Config => AUTO_INCLUDE  => '#include "gd.h"';
> #Apparently can't use #include "gd.h" in the code itself
> #Some say I can but it generates a bootstrap error here...
> use Inline C => 'DATA';

FWIW, I think the above incantation might not work. (How I wish I didn't try
to make the interface so TMTOWTDI ;)

Multiple C configs might not add up. The way I would do it is thus:

use Inline C => DATA =>
           FORCE_BUILD => 1,
           CLEAN_AFTER_BUILD => 0,
           LIBS => '-L/usr/lib -lgd',
           AUTO_INCLUDE  => '#include "gd.h"';

The whole thing is overarchitected to allow different configs for different
Inline sections using different languages, etc. 

Cheers, Brian

Reply via email to