Opened 12 years ago

Closed 11 years ago

#710 closed Bugs (fixed)

asio redefine FD_SETSIZE macro

Reported by: zhaozg Owned by: chris_kohlhoff
Milestone: Component: None
Version: None Severity: Problem
Keywords: Cc:


asio sockets_types.hpp line 59, redefine FD_SETSIZE 

Change History (5)

comment:1 Changed 12 years ago by chris_kohlhoff

Status: assignedclosed
Logged In: YES 

Fixed in CVS.

comment:2 Changed 11 years ago by anonymous

Resolution: None
Status: closedreopened

I'm still getting this error when using asio 0.3.7 in a Window XP box with Visual C++ 2005 Express.

c:\work\asio-0.3.7\include\asio\detail\socket_types.hpp(44) : warning C4005: 'FD_SETSIZE' : macro redefinition

comment:3 Changed 11 years ago by daniel.dandrada@…

Forgot to add my e-mail on the last change.

comment:4 Changed 11 years ago by daniel.dandrada@…

The workaround on this issue seems to be putting "#include <asio.hpp>" as the first include.

IMHO, a "#ifndef FD_SETSIZE" on socket_types.hpp wouldn't be a bad thing.

comment:5 Changed 11 years ago by chris_kohlhoff

Resolution: fixed
Severity: Problem
Status: reopenedclosed

As noted previously, this has already been fixed in CVS (now SVN). The fix was applied after asio 0.3.7, and will appear in the next release of asio as well as boost 1.35.

Note: See TracTickets for help on using tickets.