Boost C++ Libraries: Ticket #2156: ncurses.h and boost.asio problem https://svn.boost.org/trac10/ticket/2156 <p> Hi all! </p> <p> To reproduce:<br /> </p> <p> #include &lt;boost/asio.hpp&gt;<br /> #include &lt;ncurses.h&gt; <br /> </p> <p> If i try to include both libraries together i get next error:<br /> </p> <p> $ g++ -lncurses -lboost_system -lboost_thread -o main *.cpp /usr/include/boost/asio/detail/socket_option.hpp:242: error: ‘stdscr’ is not a type /usr/include/boost/asio/detail/socket_option.hpp:252: error: ‘stdscr’ is not a type /usr/include/boost/asio/detail/socket_option.hpp:252: error: expected identifier before ‘)’ token </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2156 Trac 1.4.3 Douglas Gregor Wed, 30 Jul 2008 17:49:07 GMT owner, component changed https://svn.boost.org/trac10/ticket/2156#comment:1 https://svn.boost.org/trac10/ticket/2156#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Douglas Gregor</span> to <span class="trac-author">chris_kohlhoff</span> </li> <li><strong>component</strong> <span class="trac-field-old">CMake</span> → <span class="trac-field-new">asio</span> </li> </ul> Ticket Rubén Lara <bermejator@…> Wed, 30 Jul 2008 17:57:36 GMT <link>https://svn.boost.org/trac10/ticket/2156#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2156#comment:2</guid> <description> <p> Same with svn version 47889 revision: </p> <p> bermejo@BERMEJO-MOBILE ~/Proyecto/boost $ !g++ g++ -lncurses -lboost_system -lboost_thread -o main *.cpp /usr/include/boost/asio/detail/socket_option.hpp:242: error: ‘stdscr’ is not a type /usr/include/boost/asio/detail/socket_option.hpp:252: error: ‘stdscr’ is not a type /usr/include/boost/asio/detail/socket_option.hpp:252: error: expected identifier before ‘)’ token </p> <p> Rubén Lara </p> </description> <category>Ticket</category> </item> <item> <dc:creator>chris_kohlhoff</dc:creator> <pubDate>Thu, 16 Apr 2009 03:28:00 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/2156#comment:3 https://svn.boost.org/trac10/ticket/2156#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/52412" title="Fix incompatibility between asio and ncurses.h due to the latter ...">[52412]</a>) Fix incompatibility between asio and ncurses.h due to the latter defining a macro called "timeout". Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2156" title="#2156: Bugs: ncurses.h and boost.asio problem (closed: fixed)">#2156</a>. </p> Ticket