Boost logo

Boost Users :

Subject: [Boost-users] RE [repost][filesystem][system] Linking errors with C++0X options on intel C++ 11.0
From: frederic.bron_at_[hidden]
Date: 2009-04-02 00:37:38


> I am then compiling a project (that works with non-C++0x just fine)
> with /Qstd:c++0x in the command line. But when I try to link it with
> my calls to boost::filesystem header functions, I get the following
> link errors (it must be using auto linking)
>
> 1>etk_template.obj : error LNK2019: unresolved external symbol
> "class boost::system::error_category const & __cdecl boost::system::
> get_system_category(void)" (?
> get_system_category_at_system@boost@@YAABVerror_category_at_12@XZ)
> referenced in function _main
> 1>etk_template2.obj : error LNK2001: unresolved external symbol
> "class boost::system::error_category const & __cdecl boost::system::
> get_system_category(void)" (?
> get_system_category_at_system@boost@@YAABVerror_category_at_12@XZ)
> 1>etk_template.obj : error LNK2019: unresolved external symbol
> "class boost::system::error_category const & __cdecl boost::system::
> get_generic_category(void)" (?
> get_generic_category_at_system@boost@@YAABVerror_category_at_12@XZ)
> referenced in function _main
> 1>etk_template2.obj : error LNK2001: unresolved external symbol
> "class boost::system::error_category const & __cdecl boost::system::
> get_generic_category(void)" (?
> get_generic_category_at_system@boost@@YAABVerror_category_at_12@XZ)

It seems your "auto linking" option is not linking with the boost_system library. Try to add it manually.
F. Bron

Avis :
Ce message et toute pièce jointe sont la propriété d'Alcan et sont destinés seulement aux personnes ou à l'entité à qui le message est adressé. Si vous avez reçu ce message par erreur, veuillez le
détruire et en aviser l'expéditeur par courriel. Si vous n'êtes pas le destinataire du message, vous n'êtes pas autorisé à utiliser, à copier ou à divulguer le contenu du message ou ses pièces jointes
en tout ou en partie.

Notice:
This message and any attachments are the property of Alcan and are intended solely for the named recipients or entity to whom this message is addressed. If you have received this message in error
please inform the sender via e-mail and destroy the message. If you are not the intended recipient you are not allowed to use, copy or disclose the contents or attachments in whole or in part.


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