kdelibs build problem

Paulo Moura Guedes pmouraguedes at gmail.com
Tue Oct 30 15:55:42 CET 2007


On 10/30/07, Christian Ehrlicher <Ch.Ehrlicher at gmx.de> 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 {

Should I commit?

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

Paulo

> 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
>
>
> ---------- Forwarded message ----------
> From: "Paulo Moura Guedes" <pmouraguedes at gmail.com>
> To: kde-windows at kde.org
> Date: Tue, 30 Oct 2007 13:20:52 +0100
> Subject: kdelibs build problem
> Hi,
>
> I'm having trouble compiling kdelibs:
>
> [ 10%] Building CXX object kjs/CMakeFiles/kjs.dir/string_object.obj
> c:/development/kde/trunk/KDE/kdelibs/kjs/string_object.cpp: In
> function `int KJS::localeCompare(const KJS::UString&, const
> KJS::UString&)':
> c:/development/kde/trunk/KDE/kdelibs/kjs/string_object.cpp:286: error:
> `LOCALE_USER_DEFAULT' was not declared in this scope
> c:/development/kde/trunk/KDE/kdelibs/kjs/string_object.cpp:287: error:
> `LPCWSTR' has not been declared
> c:/development/kde/trunk/KDE/kdelibs/kjs/string_object.cpp:288: error:
> `LPCWSTR' has not been declared
> c:/development/kde/trunk/KDE/kdelibs/kjs/string_object.cpp:288: error:
> `CompareStringW' was not declared in this scope
> make[2]: *** [kjs/CMakeFiles/kjs.dir/string_object.obj] Error 1
>
> Same with you?
>
> Paulo
> _______________________________________________
> Kde-windows mailing list
> Kde-windows at kde.org
> https://mail.kde.org/mailman/listinfo/kde-windows
>
> _______________________________________________
> Kde-windows mailing list
> Kde-windows at kde.org
> https://mail.kde.org/mailman/listinfo/kde-windows
>
>



More information about the Kde-windows mailing list