NLGUI
Added by Ronce about 6 years ago
Hello,
A few minutes ago, I want to try the new gui library, but I cannot compile it.
I am using visual studio 2010, revision 65f65d8c2ceb, the externals VC++ 2010 from WindowsBinaries and no stlport.
I think anything in libwww trys to include the ws2def.h after including winsock.h, but i cannot find why.
2>ClCompile:
2> group_html.cpp
2>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\errno.h(81): warning C4005: 'EINVAL': Makro-Neudefinition
2> r:\external\include\wwwsys.h(305): Siehe vorherige Definition von 'EINVAL'
2>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\errno.h(98): warning C4005: 'ECONNABORTED': Makro-Neudefinition
2> r:\external\include\wwwsys.h(307): Siehe vorherige Definition von 'ECONNABORTED'
2>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\errno.h(99): warning C4005: 'ECONNREFUSED': Makro-Neudefinition
2> r:\external\include\wwwsys.h(298): Siehe vorherige Definition von 'ECONNREFUSED'
2>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\errno.h(100): warning C4005: 'ECONNRESET': Makro-Neudefinition
2> r:\external\include\wwwsys.h(306): Siehe vorherige Definition von 'ECONNRESET'
2>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\errno.h(102): warning C4005: 'EHOSTUNREACH': Makro-Neudefinition
2> r:\external\include\wwwsys.h(301): Siehe vorherige Definition von 'EHOSTUNREACH'
2>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\errno.h(104): warning C4005: 'EINPROGRESS': Makro-Neudefinition
2> r:\external\include\wwwsys.h(297): Siehe vorherige Definition von 'EINPROGRESS'
2>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\errno.h(105): warning C4005: 'EISCONN': Makro-Neudefinition
2> r:\external\include\wwwsys.h(303): Siehe vorherige Definition von 'EISCONN'
2>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\errno.h(110): warning C4005: 'ENETUNREACH': Makro-Neudefinition
2> r:\external\include\wwwsys.h(300): Siehe vorherige Definition von 'ENETUNREACH'
2>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\errno.h(130): warning C4005: 'ETIMEDOUT': Makro-Neudefinition
2> r:\external\include\wwwsys.h(299): Siehe vorherige Definition von 'ETIMEDOUT'
2>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\errno.h(132): warning C4005: 'EWOULDBLOCK': Makro-Neudefinition
2> r:\external\include\wwwsys.h(296): Siehe vorherige Definition von 'EWOULDBLOCK'
2>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\ws2def.h(212): error C2011: 'sockaddr': 'struct' Typneudefinition
2> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winsock.h(485): Siehe Deklaration von 'sockaddr'
2>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\ws2def.h(390): error C2059: Syntaxfehler: 'Konstante'
2>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\ws2def.h(390): error C3805: 'Konstante': unerwartetes Token, es wurde entweder '}' oder ein ',' erwartet
2>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\ws2def.h(583): error C2011: 'sockaddr_in': 'struct' Typneudefinition
2> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winsock.h(312): Siehe Deklaration von 'sockaddr_in'
2>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(132): error C2011: 'fd_set': 'struct' Typneudefinition
2> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winsock.h(68): Siehe Deklaration von 'fd_set'
There are much more errors but they mean all the same fault.
Ronce
Replies (3)
RE: NLGUI - Added by dfighter about 6 years ago
Well VS has an option in the project options dialog, that causes the compiler to show what headers are included and in what order, you could try to enable that.
Also I use VS2K8 SP1 + externals with stlport, so it's possible that the problem is that, I don't know.
I have to focus on development, so I can't help you much with tracking down this issue right now, but in the end of the summer I will set up a VM with VS2K10 and see what I can do.
RE: NLGUI - Added by Ronce about 6 years ago
I've found the solution.
In libwww.cpp and group_html.cpp you must include the group_html.h before the
libwww includes
(1-3/3)