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:
Michael Roberts
Date:
March 20, 2012 13:27
Subject:
Re: Having troubles getting the INC and LIBS to work for Inline::C
Message ID:
4F68E83A.2080801@vivtek.com
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';
> }
>
> ...



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