U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ MT-multithreading and servers » Problem with includes in Socket.cpp and Web.h
Re: Problem with includes in Socket.cpp and Web.h [message #35970 is a reply to message #35969] Tue, 10 April 2012 09:18 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
koldo wrote on Tue, 10 April 2012 02:47

Hello Mirek and Kohait

In my PC it works now. The changes included for sure are not perfect but they serve:

In Socket.cpp, for MinGW
#ifdef PLATFORM_WIN32
#include <winsock2.h>
#ifdef COMPILER_MSC
	#include <Ws2ipdef.h>
#endif
#include <Ws2tcpip.h>
#endif


In Core.h
- Include this before windows.h, for MinGW
#ifdef COMPILER_MINGW
	#define WINVER 0xFFFF	
#endif


- To add:
#ifdef PLATFORM_WIN32
	#include <ws2tcpip.h>




Not quite sure about "To add".

Could you attach both files to be sure?

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Warning in Socket.cpp
Next Topic: Doubt with timeout in HttpRequest
Goto Forum:
  


Current Time: Tue Oct 06 16:14:28 GMT+2 2026

Total time taken to generate the page: 0.09786 seconds