kbabel compile error

Ralf Habacker ralf.habacker at freenet.de
Mon Jul 23 14:34:35 CEST 2007


Christian Ehrlicher schrieb:
> Von: Ralf Habacker <ralf.habacker at freenet.de>
>   
>> Hi,
>>
>> while compiling recent kdesdk sources there is a compile error. The
>> deprecated warning could be probably ignored
>>
>> Is anyone there who has an idea how to fix ?
>>
>> Ralf
>>
>>
>> In file included from
>> d:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/iostream.h:31,
>>                  from
>> D:/Programme/kdewin-mingw/bin/../include/FlexLexer.h:47,
>>                  from
>> D:\daten\kdesdk-mingw-build\kbabel\common\pofiles.cpp:244:
>> d:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/backward_warning.h:32:2:
>> warning: #warning
>> This file includes at least one deprecated or antiquated header. Please
>> consider using one of the 32 headers found in se
>> ction 17.4.1.2 of the C++ standard. Examples include substituting the
>> <X> header for the <X.h> header for C++ includes,
>> or <iostream> instead of the deprecated header <iostream.h>. To disable
>> this warning use -Wno-deprecated.
>> In file included from
>> D:/Programme/kdewin-mingw/bin/../include/FlexLexer.h:47,
>>                  from
>> D:\daten\kdesdk-mingw-build\kbabel\common\pofiles.cpp:244:
>> d:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/iostream.h:36:
>> error: `istream' is already
>> declared in this scope
>> D:\daten\kdesdk-mingw-build\kbabel\common\pofiles.cpp: In member
>> function `virtual int GettextBaseFlexLexer::yylex()':
>> D:\daten\kdesdk-mingw-build\kbabel\common\pofiles.cpp:717: error: cannot
>> convert `std::istream*' to `istream*' in assign
>> ment
>> D:\daten\kdesdk-mingw-build\kbabel\common\pofiles.cpp: In member
>> function `void GettextBaseFlexLexer::yy_load_buffer_sta
>> te()':
>> D:\daten\kdesdk-mingw-build\kbabel\common\pofiles.cpp:1250: error:
>> cannot convert `istream*' to `std::istream*' in assig
>> nment
>> D:\daten\kdesdk-mingw-build\kbabel\common\pofiles.cpp: In member
>> function `void GettextBaseFlexLexer::yy_init_buffer(yy_
>> buffer_state*, std::istream*)':
>> D:\daten\kdesdk-mingw-build\kbabel\common\pofiles.cpp:1301: error:
>> cannot convert `std::istream*' to `istream*' in assig
>> nment
>> mingw32-make[2]: ***
>> [kbabel/common/CMakeFiles/kbabelcommon.dir/pofiles.obj] Error 1
>> mingw32-make[1]: *** [kbabel/common/CMakeFiles/kbabelcommon.dir/all] Error
>> 2
>> mingw32-make: *** [all] Error 2
>>
>>     
> Maybe try to get a newer FlexLexer.h - but imho win32libs contains the newest one I could find... :(
> Afair I could compile kbabel + msvc some time ago.
>   
then it is probably a mingw only problem. I will try to take a deeper look

Ralf





More information about the Kde-windows mailing list