[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swftools-common] error when compile swftools-2009-04-13-0127.tar.gz wit

From: oyster
Subject: [Swftools-common] error when compile swftools-2009-04-13-0127.tar.gz with mingw
Date: Tue, 14 Apr 2009 15:57:25 +0800

xpdf/Stream.cc:22: error: declaration of C function `int
unlink(char*)' conflicts with
h:/mingw/Dev-Cpp/include/stdio.h:187: error: previous declaration `int
unlink(const char*)' here

that can be fixed (at least for my mingw, I don't know if unlink(char
*filename) works for other compilers) by change this line from
extern "C" int unlink(char *filename);
#ifdef __MINGW32__
extern "C" int unlink(const char *filename);
extern "C" int unlink(char *filename);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]