
Hi...I've followed your advice, and I have downloaded the new boost asio
library, which support the fork().
I've downloaded the simple example at the following link:
http://think-async.com/Asio/boost_asio_1_5_2/doc/html/boost_asio/example/for...,
but when I'm trying to compile I get the following error:
**** Build of configuration Debug for project ServerFork ****
make all
Building file: ../ServerFork.cpp
Invoking: GCC C++ Compiler
g++ -I/usr/nuovoboost/boost_asio_1_5_2 -O0 -g3 -Wall -c -fmessage-length=0 -MMD
-MP -MF"ServerFork.d" -MT"ServerFork.d" -o"ServerFork.o" "../ServerFork.cpp"
In file included from
/usr/nuovoboost/boost_asio_1_5_2/boost/asio/detail/impl/throw_error.ipp:21,
from
/usr/nuovoboost/boost_asio_1_5_2/boost/asio/detail/throw_error.hpp:52,
from
/usr/nuovoboost/boost_asio_1_5_2/boost/asio/detail/impl/posix_mutex.ipp:23,
from
/usr/nuovoboost/boost_asio_1_5_2/boost/asio/detail/posix_mutex.hpp:73,
from
/usr/nuovoboost/boost_asio_1_5_2/boost/asio/detail/mutex.hpp:25,
from
/usr/nuovoboost/boost_asio_1_5_2/boost/asio/detail/service_registry.hpp:20,
from
/usr/nuovoboost/boost_asio_1_5_2/boost/asio/impl/io_service.hpp:19,
from
/usr/nuovoboost/boost_asio_1_5_2/boost/asio/io_service.hpp:767,
from ../ServerFork.cpp:1:
/usr/nuovoboost/boost_asio_1_5_2/boost/system/system_error.hpp:22: error:
expected initializer before ‘:’ token
In file included from
/usr/nuovoboost/boost_asio_1_5_2/boost/asio/impl/io_service.hpp:19,
from
/usr/nuovoboost/boost_asio_1_5_2/boost/asio/io_service.hpp:767,
from ../ServerFork.cpp:1:
/usr/nuovoboost/boost_asio_1_5_2/boost/asio/detail/service_registry.hpp:38:
error: expected ‘}’ before end of line
/usr/nuovoboost/boost_asio_1_5_2/boost/asio/detail/service_registry.hpp:38:
error: expected ‘}’ before end of line
/usr/nuovoboost/boost_asio_1_5_2/boost/asio/detail/service_registry.hpp:38:
error: expected declaration before end of line
/usr/nuovoboost/boost_asio_1_5_2/boost/asio/detail/throw_error.hpp:27: warning:
inline function ‘void boost::asio::detail::do_throw_error(const
boost::system::error_code&)’ used but never defined
/usr/nuovoboost/boost_asio_1_5_2/boost/asio/detail/throw_error.hpp:29: warning:
inline function ‘void boost::asio::detail::do_throw_error(const
boost::system::error_code&, const char*)’ used but never defined
/usr/nuovoboost/boost_asio_1_5_2/boost/system/error_code.hpp:214: warning:
‘boost::system::posix_category’ defined but not used
/usr/nuovoboost/boost_asio_1_5_2/boost/system/error_code.hpp:215: warning:
‘boost::system::errno_ecat’ defined but not used
/usr/nuovoboost/boost_asio_1_5_2/boost/system/error_code.hpp:216: warning:
‘boost::system::native_ecat’ defined but not used
make: *** [ServerFork.o] Error 1
any ideas?
thanks...
________________________________
Da: Diederick C. Niehorster
Il 3/9/2011 1:19 PM, John Maddock ha scritto:
The correct fix is to set the library search path to search the location of the libraries built when you built Boost (defaults to stage/lib with msvc) - you did build Boost right?
John, obviously the error I get is related to the fact the program_options lib is not reached by the linker. My question at this point is different: can I use program_options as header only library? On the basis of what Diederick told me it seems I can't. Now, could you please tell me where can I find the list of boost libs that can be used as header only?
Thanks Gianni
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users