Re: Strange Winsock problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux