I remember to have seen this problem in the past, just when i switch from mingw to TDM-GCC.
It look like mingw header still present in your system somewhere and come in conflict with TDM-GCC header. remove mingw properly will solve this problem. If you have installed mingw using emerge, no chnage : all file are merged with you KDE windows install. Personalyy, i install TDM-GCC in C:/TDM-GCC/ (not C:/MINGW). Respect TDM-GCC tips from this page : http://tdm-gcc.tdragon.net/start#install Here all compilation work fine indeep. I'm happy. http://www.flickr.com/photos/digikam/5067133639/sizes/o/in/photostream/ Note : I use also M$ MSVC compiler on the same machine. I install 2 KDE4 version on my computer, and to select right path, i use a simple M$ shell script to init env on the console. The advange to have both compiler at the same time is to check warnings and errors, which are very instructive under MSVC. I don't want to said that MSVC is better than GCC. Sometime yes sometime no. The next stage for me is to setup a developement env under my new macbook and check if all work fine with Apple XCode compiler. Gilles Caulier 2010/10/25 Francis Corvin <[email protected]>: > That''s great Gilles. Indeed, I went a little further, but this time hit > what looks like a source code issue: usleep() declared twice with different > types. Can anyone suggest a resolution? > > Thanks in advance, > > Francis > > [ 12%] Building CXX object > libs/libkdcraw/libkdcraw/CMakeFiles/kdcraw.dir/__/libraw/internal/dcraw_common.obj > In file included from > e:\kde4-tdmgcc\bin\../lib/gcc/mingw32/4.5.1/../../../../include/lcms.h:185:0, > from > E:\dev-dmgcc\kdegraphics\libs\libkdcraw\libraw/internal/defines.h:54, > from > E:\dev-tdmgcc\kdegraphics\libs\libkdcraw\libraw\internal\dcraw_common.cpp:29: > E:\kde4-tdmgcc\include\mingw/unistd.h:119:44: > error: declaration of C function 'void usleep(unsigned int)' conflicts with > e:\kde4-tdmgcc\bin\../lib/gcc/mingw32/4.5.1/../../../../include/../include/unistd.h:36:29: > error: previous declaration 'int usleep(useconds_t)' here > make[2]: *** > [libs/libkdcraw/libkdcraw/CMakeFiles/kdcraw.dir/__/libraw/internal/dcraw_common.obj] > Error 1 > make[1]: *** [libs/libkdcraw/libkdcraw/CMakeFiles/kdcraw.dir/all] Error 2 > make: *** [all] Error 2 > > At 2010-10-24 11:57, Gilles Caulier wrote: > > Tutorial is not updated. I recommend to use TDM-GCC instead mingw. It > work very well and it's very easy to install. Also, TDM-GCC it GCC > 4.5.x. > > Gilles Caulier > > _______________________________________________ > Kde-windows mailing list > [email protected] > https://mail.kde.org/mailman/listinfo/kde-windows > > _______________________________________________ Kde-windows mailing list [email protected] https://mail.kde.org/mailman/listinfo/kde-windows
