kdelibs build problem
Christian Ehrlicher
Ch.Ehrlicher at gmx.de
Tue Oct 30 16:33:27 CET 2007
> Von: "Paulo Moura Guedes"
> On 10/30/07, Christian Ehrlicher wrote:
> > Hi,
> >
> > CompareStringW(LOCALE_USER_DEFAULT, 0, ...) is the problem because
> LOCALE_USER_DEFAULT is not defined. Looks like someone forgot to include
> <winnls.h> - please take a look if it's defined there and tell us if this fixes
> the compile error.
>
> This patch works for me:
>
> --- string_object.cpp (revision 731043)
>
> +++ string_object.cpp (working copy)
>
> @@ -31,6 +31,10 @@
>
> #include "regexp_object.h"
> #include <wtf/unicode/libc/UnicodeLibC.h>
>
> +#if PLATFORM(WIN_OS)
> +#include <Windows.h>
> +#endif
> +
> using namespace WTF;
>
> namespace KJS {
>
I wonder why msvc doesn't complain about unknown CompareStringW() - function then... strange
> Should I commit?
>
I would say yes. Plz cc harri porten.
> In the meanwhile after an update to kdelibs, I get this new error:
>
> [ 0%] Building CXX object
> kdecore/CMakeFiles/kdecore.dir/config/kconfiggroup.obj
> c:/development/kde/trunk/KDE/kdelibs/kdecore/config/kconfiggroup.cpp:
> In static member function `static QString
> KConfigGroupPrivate::expandString(const QString&)':
> c:/development/kde/trunk/KDE/kdelibs/kdecore/config/kconfiggroup.cpp:391:
> error: `setenv' was not declared in this scope
>
Search for setenv() in kdewin32 headers, add this header and all should work. If not, let me know. Otherwise this is the default way to fix such things ;-)
Christian
--
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
More information about the Kde-windows
mailing list