[Wine] Strange Winsock problem

Charles Davis cdavis at mymail.mines.edu
Wed Dec 16 15:18:21 CST 2009


Syphius wrote:
> Hello, 
> 
> I try to port a small program (Windows resouces manipulation tool) on MacOSX, but I've a strange compilation problem :
> 
> 
> Code:
> 
> wineg++ -c   -I. -I/usr/local/include/wine -I/usr/local/include/wine/windows    -o ExeIconManipulation.o ExeIconManipulation.cpp
> /usr/include/sys/_select.h:47: error: declaration of C function ‘int select(int, fd_set*, fd_set*, fd_set*, timeval*)’ conflicts with
> /usr/local/include/wine/windows/winsock.h:1048: error: previous declaration ‘int select(int, fd_set*, fd_set*, fd_set*, const timeval*)’ here
> winegcc: g++ failed
> 
> 
> 
> 
> I didn't use winsock on my program, I just include windows.h, and I've this strange problem.
> 
> Could you help me?
If you define WIN32_LEAN_AND_MEAN, the winsock errors will go away.

The errors happen because some stuff in winsock.h is incompatible with
the stuff on your system (happens to me, too). For now, just define
WIN32_LEAN_AND_MEAN. If you have any other problems, post back here.

Chip





More information about the wine-users mailing list