Opened 12 years ago

Closed 11 years ago

#5470 closed Bugs (fixed)

compile error in asio/detail/impl/win_iocp_io_service.ipp with cygwin-gcc

Reported by: kikairoya@… Owned by: chris_kohlhoff
Milestone: To Be Determined Component: asio
Version: Boost 1.46.1 Severity: Problem
Keywords: Cc:

Description

With cygwin gcc-3 or gcc-4, compile error occurs in asio/detail/impl/win_iocp_io_service.ipp.

$ gcc-3 -v
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: /managed/gcc-build/final-v3-bootstrap/gcc-3.4.4-999/configure --verbose --program-suffix=-3 --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-languages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --without-included-gettext --enable-version-specific-runtime-libs --without-x --enable-libgcj --disable-java-awt --with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-threads=posix --enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions --enable-hash-synchronization --enable-libstdcxx-debug
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)

$ gcc-3 -c -D__USE_W32_SOCKETS /usr/local/boost/boost/asio.hpp
/usr/local/boost/boost/asio/detail/impl/win_iocp_io_service.ipp: In member function `void boost::asio::detail::win_iocp_io_service::do_add_timer_queue(boost::asio::detail::timer_queue_base&)':
/usr/local/boost/boost/asio/detail/impl/win_iocp_io_service.ipp:461: error: no matching function for call to `boost::asio::detail::posix_thread::posix_thread(boost::asio::detail::win_iocp_io_service::timer_thread_function&, int)'
/usr/local/boost/boost/asio/detail/posix_thread.hpp:38: note: candidates are: boost::asio::detail::posix_thread::posix_thread(const boost::asio::detail::posix_thread&)

I think the ctor of asio::detail::posix_thread should have dummy int parameter for interface compatibility.

Change History (1)

comment:1 by chris_kohlhoff, 11 years ago

Resolution: fixed
Status: newclosed

Should be fixed in release branch as of [72428].

Note: See TracTickets for help on using tickets.