Boost logo

Boost :

From: simonvifr_at_[hidden]
Date: 2008-07-01 19:43:41


Hello,

Thank you for your help. The error is now fixed. My configuration was not correctly set.

However, it still remains an error when building the C++ program.
After including the line "#include <boost/asio.hpp>" the following messages are displayed :

     Linking console executable:
     .objs\Menu.o:Menu.cpp:(.text+0x19a3): undefined reference to `boost::system::get_system_category()'
     .objs\Menu.o:Menu.cpp:(.text+0x19bc): undefined reference to `boost::system::get_posix_category()'
     .objs\Menu.o:Menu.cpp:(.text+0x19d5): undefined reference to `boost::system::get_posix_category()'
     .objs\Menu.o:Menu.cpp:(.text+0x19ee): undefined reference to `boost::system::get_system_category()'
     .objs\Menu.o:Menu.cpp:(.text$_ZN5boost4asio5error19get_system_categoryEv[boost::asio::error::get_system_cathttp://mail3.voila.fr/webmail/fr_FR/write.html#
Envoyeregory()]+0x7): undefined reference to `boost::system::get_system_category()'
     collect2: ld returned 1 exit status
     Process terminated with status 1 (0 minutes, 0 seconds)

I think I need to link the "boost_system-iw-mt-1_35.lib" and/or the "boost_system-iw-mt.lib" libraries but I do not know how.
I have tried without success.

Thank you for your answer to fix this error.
Regards.

> Message du 01/07/08 à 16h36
> De : "Beman Dawes" <bdawes_at_[hidden]>
> A : boost_at_[hidden]
> Copie à :
> Objet : Re: [boost] [system] boost compilation
>
>
> simonvifr_at_[hidden] wrote:
>
> > I contact you because an error occurs when compiling the "system"
> > library with the following command prompt : bjam --with-system
> > --toolset=intel --debug-configuration stage
> >
> > The intel compiler seems to be invoked correctly (see mail below).
> >
> > The message error is :
> >
> > error_code.cpp libs\system\src\error_code.cpp(90): error: namespace
> > "std" has no member "strerror" const char * c_str = std::strerror( ev
> > ); ^ compilation aborted for libs\system\src\error_code.cpp (code 2)
> >
> > My OS version is Windows XP.
> > My boost version is 1.35.0
> > My boost-jam version is 3.1.16-1 (ntx86)
> > My intel compiler version is 10.1.021
>
> Each of those is exactly identical to the setup on my main development
> machine. The Intel compiler is one of the ones I test with regularly.
>
> Yet the command line you specify about works fine for me.
>
> One possibility, and it is only a guess, is that your configuration is
> finding the wrong set of C++ standard library include files.
>
> > Thank you for your answer to fix this error.
>
> HTH,
>
> --Beman
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>
>

____________________________________________________

Sur le mail Voila, vous pouvez personnaliser l’anti-spam ! http://mail.voila.fr


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk