Modify

Opened 11 years ago

Closed 10 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:

Description

asio sockets_types.hpp line 59, redefine FD_SETSIZE 
macro!

Attachments (0)

Change History (5)

comment:1 Changed 11 years ago by chris_kohlhoff

Status: assignedclosed
Logged In: YES 
user_id=1145801

Fixed in CVS.

comment:2 Changed 10 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 10 years ago by daniel.dandrada@…

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

comment:4 Changed 10 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 10 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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain chris_kohlhoff.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.