<p dir="ltr"><br>
On 17 Mar 2014 01:25, "Walter Bright" <<a href="mailto:newshound2@digitalmars.com">newshound2@digitalmars.com</a>> wrote:<br>
><br>
> On 3/15/2014 6:44 AM, Johannes Pfau wrote:<br>
>><br>
>> Then in cairo.d<br>
>> version(CAIRO_HAS_PNG_SUPPORT)<br>
>> {<br>
>>     extern(C) int cairo_save_png(char* x);<br>
>>     void savePNG(string x){cairo_save_png(toStringz(x))};<br>
>> }<br>
><br>
><br>
> try adding:<br>
><br>
>   else<br>
>   {<br>
>        void savePNG(string x) { }<br>
>   }<br>
><br>
> and then your users can just call savePNG without checking the version.</p>
<p dir="ltr">If I recall, he was saying that you must pass -fversion=CAIRO_HAS_PNG_SUPPORT to every file that imports it was the problem, because you want PNG support, not stubs.</p>
<p dir="ltr">It's more an example where you need a build system in place for a simple hello world in cairoD if you don't want to be typing too much just to get your test program built. :)<br>
</p>