How to use boost thread & asio library without exception

Hi,
I am using boost's thread and asio library:
#include

I have search for solution of my problem and I have tried adding
#define BOOST_NO_EXCEPTIONS
#define BOOST_NO_RTTI
before I include any boost hpp files,
But that still does not resolve the compile errors.
Thank you.
On Wed, Dec 30, 2009 at 9:49 PM, n179911
Hi,
I am using boost's thread and asio library:
#include
#include But when I compile it, I get this error: /media/data/bin/boost/include/boost/exception_ptr.hpp:11:2: error: #error This header requires exception handling to be enabled. In file included from /media/data/bin/boost/include/boost/asio/detail/winsock_init.hpp:22, /media/data/bin/boost/include/boost/function/function_base.hpp:386: error: cannot use typeid with -fno-rtti
Is there a way to use boost's thread and asio library without exception and rtti?
Thank you.

On Wed, Dec 30, 2009 at 10:33 PM, n179911
I have search for solution of my problem and I have tried adding #define BOOST_NO_EXCEPTIONS #define BOOST_NO_RTTI before I include any boost hpp files,
But that still does not resolve the compile errors.
You should not need to manually define the two macros. With most compilers, disabled exceptions and absence of RTTI support should be detected automatically. Please file a Trac ticket, this problem needs to be resolved, preferably before the next Boost release is out. Thanks, Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode
participants (2)
-
Emil Dotchevski
-
n179911