[poppler] strdup not declared (Windows with MinGW)

Vincent Torri vtorri at univ-evry.fr
Sun Oct 17 03:33:15 PDT 2010



On Sun, 17 Oct 2010, Albert Astals Cid wrote:

> A Diumenge, 17 d'octubre de 2010, Vincent Torri va escriure:
>> Hey
>>
>> something rather strange: with poppler 0.14, on Windows with MSYS/MinGW, i
>> get:
>>
>> Annot.cc:3936:62: error: 'strdup' was not declared in this scope. I tried
>> also with _strdup (as it's what is actually declared in Microsoft
>> headers). No success too.
>>
>> Does someone have an idea ?
>
> Try removing the -ansi flags, i think mingw doesn't export strdup whith the -
> ansi flag for some reason (i think it's their bug and not ours).

indeed, it works now.

Vincent


More information about the poppler mailing list