Hi!
When building nurses-5.9 with latest mingw-w64+gcc-4.6.3 I get error:
i686-w64-mingw32-g++ -I../c++ -I../include
-I../../../../mingw-sources/ncurses-5.9/c++ -DHAVE_CONFIG_H
-D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=199506L -D_FILE_OFFSET_BITS=64
-DXTSTRINGDEFINES -I. -I../include
-I../../../../mingw-sources/ncurses-5.9/c++/../include
-I/temp/x32-4.6.3-release-posix-sjlj-rev2/libs/include/ncurses -O2 -pipe
-fomit-frame-pointer -W -Wall -Wabi -fabi-version=0 -Woverloaded-virtual
-Wsign-promo -Wsynth -Wold-style-cast -Wcast-align -Wcast-qual
-Wpointer-arith -Wshadow -Wundef -Weffc++ -Wno-unused -c
../../../../mingw-sources/ncurses-5.9/c++/demo.cc -o ../objects/demo.o
In file included from
c:\gccbuild\msys\temp\x32-4.6.3-release-posix-sjlj-rev2\prefix\bin\../lib/gcc/i686-w64-mingw32/4.6.3/include/c++/i686-w64-mingw32/bits/gthr-default.h:42:0,
from
c:\gccbuild\msys\temp\x32-4.6.3-release-posix-sjlj-rev2\prefix\bin\../lib/gcc/i686-w64-mingw32/4.6.3/include/c++/i686-w64-mingw32/bits/gthr.h:170,
from
c:\gccbuild\msys\temp\x32-4.6.3-release-posix-sjlj-rev2\prefix\bin\../lib/gcc/i686-w64-mingw32/4.6.3/include/c++/ext/atomicity.h:34,
from
c:\gccbuild\msys\temp\x32-4.6.3-release-posix-sjlj-rev2\prefix\bin\../lib/gcc/i686-w64-mingw32/4.6.3/include/c++/bits/ios_base.h:41,
from
c:\gccbuild\msys\temp\x32-4.6.3-release-posix-sjlj-rev2\prefix\bin\../lib/gcc/i686-w64-mingw32/4.6.3/include/c++/ios:43,
from
c:\gccbuild\msys\temp\x32-4.6.3-release-posix-sjlj-rev2\prefix\bin\../lib/gcc/i686-w64-mingw32/4.6.3/include/c++/ostream:40,
from
c:\gccbuild\msys\temp\x32-4.6.3-release-posix-sjlj-rev2\prefix\bin\../lib/gcc/i686-w64-mingw32/4.6.3/include/c++/iostream:40,
from
../../../../mingw-sources/ncurses-5.9/c++/cursesmain.cc:38:
c:\gccbuild\msys\temp\x32-4.6.3-release-posix-sjlj-rev2\prefix\bin\../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/unistd.h:32:22:
error: 'unsigned int Sleep' redeclared as different kind of symbol
c:\gccbuild\msys\temp\x32-4.6.3-release-posix-sjlj-rev2\prefix\bin\../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/winbase.h:1405:26:
error: previous declaration of 'void Sleep(DWORD)'
c:\gccbuild\msys\temp\x32-4.6.3-release-posix-sjlj-rev2\prefix\bin\../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/unistd.h:32:22:
error: expected primary-expression before 'unsigned'
c:\gccbuild\msys\temp\x32-4.6.3-release-posix-sjlj-rev2\prefix\bin\../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/unistd.h:32:22:
error: expected ')' before 'unsigned'
make[1]: *** [../objects/cursesmain.o] Error 1
With latest mingw-w64+gcc-4.7.2 I haven't this error. Is it mingw-w64 bug?
------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public