[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 |
[msg]
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
[/msg]
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
[code]
extern "C" int unlink(char *filename);
[/code]
to
[code]
#ifdef __MINGW32__
extern "C" int unlink(const char *filename);
#else
extern "C" int unlink(char *filename);
#endif
[/code]
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Swftools-common] error when compile swftools-2009-04-13-0127.tar.gz with mingw,
oyster <=