Boost logo

Boost Users :

Subject: [Boost-users] Errors when linking a CXX executable to boost static libraries, using gcc4.7 and boost 1.51.0
From: camille chambon (camillechambon_at_[hidden])
Date: 2012-10-25 12:32:59


Hello, I'm trying to link a CXX executable to boost static libraries. My environment is: - Fedora 17 64bit - gcc 4.7 - boost 1.51.0 built with gcc 4.7 I then get the following errors : `.text._ZN5boost16exception_detail19error_info_injectorINS_16bad_lexical_castEED2Ev' referenced in section `.text._ZN5boost16exception_detail19error_info_injectorINS_16bad_lexical_castEED1Ev[_ZN5boost16exception_detail19error_info_injectorINS_16bad_lexical_castEED1Ev]' of /home/cchambon/libs/lib/libpgma.a(Timeline.cpp.o): defined in discarded section `.text._ZN5boost16exception_detail19error_info_injectorINS_16bad_lexical_castEED2Ev[_ZN5boost16exception_detail19error_info_injectorINS_16bad_lexical_castEED5Ev]' of /home/cchambon/libs/lib/libpgma.a(Timeline.cpp.o) `.text._ZN5boost16exception_detail19error_info_injectorINS_12bad_any_castEED2Ev' referenced in section `.text._ZN5boost16exception_detail19error_info_injectorINS_12bad_any_castEED1Ev[_ZN5boost16exception_detail19error_info_injectorINS_12bad_any_castEED1Ev]' of /home/cchambon/libs/lib/libpgma.a(DistributionFactory.cpp.o): defined in discarded section `.text._ZN5boost16exception_detail19error_info_injectorINS_12bad_any_castEED2Ev[_ZN5boost16exception_detail19error_info_injectorINS_12bad_any_castEED5Ev]' of /home/cchambon/libs/lib/libpgma.a(DistributionFactory.cpp.o) error: collect2: ld returned 1 exit status Does anyone know what these errors mean? Cheers, Camille



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