[prev in list] [next in list] [prev in thread] [next in thread]
List: swftools-common
Subject: [Swftools-common] error when compile swftools-2009-04-13-0127.tar.gz with mingw
From: oyster <lepto.python () gmail ! com>
Date: 2009-04-14 7:57:25
Message-ID: 6a4f17690904140057q3a9fd5c1n25761437e62c1f55 () mail ! gmail ! com
[Download RAW message or body]
[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 list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic