Boost logo

Boost :

From: frederic.bron_at_[hidden]
Date: 2007-06-29 01:43:27


There is an "inline" missing in filesystem/convenience.hpp

# define BOOST_FS_FUNC_STRING std::string

should be

# define BOOST_FS_FUNC_STRING inline std::string

F. Bron
___________________________________
Frédéric Bron (frederic.bron_at_[hidden])
Unité ALT, Alcan CRV, BP 27, 38341 Voreppe
téléphone : +33 4 76 57 81 72
télécopie : +33 4 76 57 80 99

                                                                                                                                                                               
                      frederic.bron_at_[hidden]
                      Envoyé par : Pour : boost-users_at_[hidden]
                      boost-users-bounces_at_list cc : (ccc : Frederic Bron/Alcan)
                      s.boost.org Objet : [Boost-users] multiple definition error when linking with filesystem
                                                                                                                                                                               
                                                                                                                                                                               
                      29/06/2007 06:58
                      Veuillez répondre à
                      boost-users
                                                                                                                                                                               

I have 2 .cpp files which both includes :
#include <boost/filesystem.hpp>
#include <boost/regex.hpp>

When I link the 2 .o with -lboost_filesystem -lboost_regex, I get the following error message:

obj_o/BBron/TraceFileExtraction.o:TraceFileExtraction.cc:(.text+0x3d0): d'efinitions multiples de << boost::filesystem::basename(boost::filesystem::basic_path<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> const&)>>
obj_o/BBron/AverageEvenCurve.o:AverageEvenCurve.cc:(.text+0x0): d'efini pour la premi`ere fois ici
obj_o/BBron/TraceFileExtraction.o:TraceFileExtraction.cc:(.text+0x4d0): d'efinitions multiples de << boost::filesystem::extension(boost::filesystem::basic_path<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> const&)>>
obj_o/BBron/AverageEvenCurve.o:AverageEvenCurve.cc:(.text+0x170): d'efini pour la premi`ere fois ici
collect2: ld a retourn'e 1 code d''etat d'ex'ecution

What's the problem?

F. Bron
___________________________________
Frédéric Bron (frederic.bron_at_[hidden])
Unité ALT, Alcan CRV, BP 27, 38341 Voreppe
téléphone : +33 4 76 57 81 72
télécopie : +33 4 76 57 80 99

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 mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users


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