mingw status

Peter Kümmel syntheticpp at gmx.net
Thu Feb 16 21:12:04 CET 2006


Paulo Jorge Guedes wrote:
> Hi,
> 
> So far everything until kjs compiled, provided WINVER is set to 0x0501
> in windef.h:
> 
> dcop
> libltdl
> kdefx
> kdecore
> kdeui
> 
> The build stops at kjs with the following error:
> 
> In file included from C:/MinGW/include/windows.h:48,
>                  from C:/MinGW/include/winsock2.h:22,
>                  from D:/KDE4/include/mingw/unistd.h:26,
>                  from d:/kde/trunk/kdelibs/config.h:336,
>                  from grammar.y:23:
> C:/MinGW/include/windef.h:242: error: expected unqualified-id before
> numeric constant
> C:/MinGW/include/windef.h:242: error: expected `,' or `;' before numeric
> constant
> In file included from C:/MinGW/include/windef.h:246,
>                  from C:/MinGW/include/windows.h:48,
>                  from C:/MinGW/include/winsock2.h:22,
>                  from D:/KDE4/include/mingw/unistd.h:26,
>                  from d:/kde/trunk/kdelibs/config.h:336,
>                  from grammar.y:23:
> C:/MinGW/include/winnt.h:79: error: expected unqualified-id before
> numeric constant
> C:/MinGW/include/winnt.h:79: error: expected `,' or `;' before numeric
> constant
> C:/MinGW/include/winnt.h:81: error: expected unqualified-id before
> numeric constant
> C:/MinGW/include/winnt.h:81: error: expected `,' or `;' before numeric
> constant
> In file included from C:/MinGW/include/windef.h:246,
>                  from C:/MinGW/include/windows.h:48,
>                  from C:/MinGW/include/winsock2.h:22,
>                  from D:/KDE4/include/mingw/unistd.h:26,
>                  from d:/kde/trunk/kdelibs/config.h:336,
>                  from grammar.y:23:
> C:/MinGW/include/winnt.h:3272: error: `PCWSTR' does not name a type
> C:/MinGW/include/winnt.h:3273: error: `PCWSTR' does not name a type
> C:/MinGW/include/winnt.h:3274: error: `PCWSTR' does not name a type
> C:/MinGW/include/winnt.h:3275: error: `PCWSTR' does not name a type
> C:/MinGW/include/winnt.h:3288: error: `PCWSTR' does not name a type
> C:/MinGW/include/winnt.h:3289: error: `PCWSTR' does not name a type
> C:/MinGW/include/winnt.h:3290: error: `PCWSTR' does not name a type
> C:/MinGW/include/winnt.h:3302: error: `PCWSTR' does not name a type
> C:/MinGW/include/winnt.h:3303: error: `PCWSTR' does not name a type
> 
> [...]
> 
> Hope it helps.
> 
> Paulo
> _______________________________________________
> Kde-buildsystem mailing list
> Kde-buildsystem at kde.org
> https://mail.kde.org/mailman/listinfo/kde-buildsystem
> 
> 

I see you managed the kdewin32 problems!

To solve above try adding
#include <Ws2tcpip.h>
+#include "fixwinh.h"

in win/include/mingw/sys/socket and win/include/mingw/netdb.h.

Don't forget to reinstall kdewin32. This is hard because most
get recompiled, but you can copy and paste the command for
compiling the file with the error.

When you have other errors have a look at the win/include/msvc
files maybe you get a idea.

Peter



More information about the Kde-buildsystem mailing list