I just started using nodejs and currently I'm working on addon that is 
supposed to use the other library. Those library is using internally 
boost::asio. When I'm trying to compile my addon code I receive the 
following output:

In file included from 
/usr/local/boost_1_51_0/boost/asio/detail/impl/throw_error.ipp:21:0,
                 from 
/usr/local/boost_1_51_0/boost/asio/detail/throw_error.hpp:52,
                 from 
/usr/local/boost_1_51_0/boost/asio/detail/impl/posix_mutex.ipp:23,
                 from 
/usr/local/boost_1_51_0/boost/asio/detail/posix_mutex.hpp:73,
                 from 
/usr/local/boost_1_51_0/boost/asio/detail/mutex.hpp:25,
                 from 
/usr/local/boost_1_51_0/boost/asio/detail/service_registry.hpp:20,
                 from 
/usr/local/boost_1_51_0/boost/asio/impl/io_service.hpp:19,
                 from /usr/local/boost_1_51_0/boost/asio/io_service.hpp:767,
                 from 
/usr/local/boost_1_51_0/boost/asio/basic_io_object.hpp:19,
                 from 
/usr/local/boost_1_51_0/boost/asio/basic_socket.hpp:19,
                 from 
/usr/local/boost_1_51_0/boost/asio/basic_datagram_socket.hpp:20,
                 ............

/usr/local/boost_1_51_0/boost/system/system_error.hpp: In member function 
‘virtual const char* boost::system::system_error::what() 
const’:/usr/local/boost_1_51_0/boost/system/system_error.hpp:70:16: error: 
exception handling disabled, use -fexceptions to enable

However adding -fexceptions to cflags section of my binding.gyp does not 
have any effect, I still have the same output.
Is there any work-around for this problem?

Any kind of help is appreciated.

Thanks,
Sergey



-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to