Strigi / CLuence on win32

Ralf Habacker ralf.habacker at freenet.de
Fri Mar 2 20:59:34 GMT 2007


Jos van den Oever schrieb:
> 2007/3/2, Ralf Habacker <ralf.habacker at freenet.de>:
>> Ralf Habacker schrieb:
>> > <snip>
>> >> Is it really that hard? Can you explain what the problems are? I dont
>> >> see how the libs can be static when I define them as SHARED. You can
>> >> leave out CLucene for now, which means the # of deps is really small.
>> >>
>> >>
>> > The following error happens:
>> >
>> > C:\Daten\kde4\strigi-build>mingw32-make
>> > [  1%] Building CXX object
>> > src/streams/CMakeFiles/decodebase64.dir/base64inputstream.obj
>> > In file included from
>> >
>> c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/mingw32/bits/c++locale.h:43,
>>
>> >                  from
>> >
>> c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iosfwd:46,
>>
>> >                  from
>> >
>> c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algobase.h:70,
>>
>> >                  from
>> >
>> c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/char_traits.h:46,
>>
>> >                  from
>> >
>> c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/string:47,
>>
>> >                  from
>> C:\Daten\kde4\strigi\src\streams\streambase.h:23,
>> >                  from
>> C:\Daten\kde4\strigi\src\streams\bufferedstream.h:23,
>> >                  from
>> > C:\Daten\kde4\strigi\src\streams\base64inputstream.h:23,
>> >                  from
>> > C:\Daten\kde4\strigi\src\streams\base64inputstream.cpp:21:
>> >
>> c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/cstdio:167:
>>
>> > error: `::snprintf' has not been declared
>> >
>> c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/cstdio:177:
>>
>> > error: `__gnu_cxx::snprintf' has not been declared
>> > In file included from
>> >
>> c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iosfwd:46,
>>
>> >                  from
>> >
>> c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algobase.h:70,
>>
>> >                  from
>> >
>> c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/char_traits.h:46,
>>
>> >                  from
>> >
>> c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/string:47,
>>
>> >                  from
>> C:\Daten\kde4\strigi\src\streams\streambase.h:23,
>> >                  from
>> C:\Daten\kde4\strigi\src\streams\bufferedstream.h:23,
>> >                  from
>> > C:\Daten\kde4\strigi\src\streams\base64inputstream.h:23,
>> >                  from
>> > C:\Daten\kde4\strigi\src\streams\base64inputstream.cpp:21:
>> >
>> c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/mingw32/bits/c++locale.h:
>>
>> > In function `int std::__convert_from_v(char*,
>> > int, const char*, _Tv, int* const&, int)':
>> >
>> c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/mingw32/bits/c++locale.h:72:
>>
>> > error: `snprintf' is not a member of `std'
>> > mingw32-make[2]: ***
>> > [src/streams/CMakeFiles/decodebase64.dir/base64inputstream.obj]
>> Error 1
>> > mingw32-make[1]: *** [src/streams/CMakeFiles/decodebase64.dir/all]
>> Error 2
>> > mingw32-make: *** [all] Error 2
>> >
>> >
>> This error is caused by a missing  #include <stdio.h>. I've tried  to
>> add this to config.h.cmake, but config.h is not included in all required
>> places. Any idea where to put this include  ?
>
> Yes, src/streams/streambase.h
Thanks, just found the real reason in src/streams/compat/jstreamsconfig.h

 #if !defined(snprintf) && !defined(__MINGW32__)
    #define snprintf _snprintf
 #endif

Is fixed now in svn.

Ralf





More information about the kde-core-devel mailing list