develooper Front page | perl.inline | Postings from March 2012

Re: Having troubles getting the INC and LIBS to work for Inline::C

Thread Previous | Thread Next
From:
David Mertens
Date:
March 20, 2012 13:39
Subject:
Re: Having troubles getting the INC and LIBS to work for Inline::C
Message ID:
CA+4ieYUXFdZ2KWbKgX4mcmWAdd21L3dLHFN6_x72kWi-Utwy1Q@mail.gmail.com
Fixed in under an hour. Go open source! :-D

On Tue, Mar 20, 2012 at 3:27 PM, Michael Roberts <michael@vivtek.com> wrote:

> Holy schemoley!  It works!
>
> On 3/20/2012 3:52 PM, David Mertens wrote:
> > Try putting your assignments in a BEGIN block. The use statements are
> > being called before the variables have their assigned values.
> >
> > our ($INCLUDES, $LIBRARIES);
> >
> > BEGIN {
> >     $INCLUDES = '-I"c:\Program Files\ImageMagick-6.7.5-Q16\include"';
> >     $LIBRARIES = '-L"c:/projects/imagemagick/Image-Magic-Wand"
> > -L"c:\Program Files\ImageMagick-6.7.5-Q16\lib" -lwand';
> > }
> >
> > ...
>
>
>


-- 
 "Debugging is twice as hard as writing the code in the first place.
  Therefore, if you write the code as cleverly as possible, you are,
  by definition, not smart enough to debug it." -- Brian Kernighan


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About