Boost logo

Boost Users :

Subject: Re: [Boost-users] How to use boost thread & asio library without exception
From: n179911 (n179911_at_[hidden])
Date: 2009-12-31 01:33:13


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 <n179911_at_[hidden]> wrote:
> Hi,
>
> I am using boost's thread and asio library:
>
> #include <boost/asio.hpp>
> #include <boost/thread.hpp>
>
> 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.
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net