Opened 15 years ago

Closed 15 years ago

#1065 closed Bugs (invalid)

cannot find -lboost_filesystem

Reported by: ferrazrafael@… Owned by: Beman Dawes
Milestone: To Be Determined Component: filesystem
Version: Boost 1.34.0 Severity: Showstopper
Keywords: lboost_filesystem Cc:

Description

Im trying to compile openlibraries in debian unstable, and when i run make command a receive this message: (im with libboost-filesystem with dev installed) (end of the log..) Code:

npluginlib_pl.so.0 -o .libs/libopenpluginlib_pl.so.0.0.4 /usr/bin/ld: cannot find -lboost_filesystem collect2: ld returned 1 exit status make[4]: [libopenpluginlib_pl.la] Erro 1 make[4]: Saindo do diretório `/home/a/downloads/openlibraries-0.4.0/src/openpluginlib/pl' make[3]: [all-recursive] Erro 1 make[3]: Saindo do diretório `/home/a/downloads/openlibraries-0.4.0/src/openpluginlib' make[2]: [all-recursive] Erro 1 make[2]: Saindo do diretório `/home/a/downloads/openlibraries-0.4.0/src' make[1]: [all-recursive] Erro 1 make[1]: Saindo do diretório `/home/a/downloads/openlibraries-0.4.0' make: [all] Erro 2


/usr/lib/ (related with filesystem) libboost_filesystem-gcc-1_33_1.so.1.33.1 libboost_filesystem-gcc41-1_34.a libboost_filesystem-gcc41-1_34.so libboost_filesystem-gcc41-1_34.so.1.34.0 libboost_filesystem-gcc41-mt-1_34.a libboost_filesystem-gcc41-mt-1_34.so libboost_filesystem-gcc41-mt-1_34.so.1.34.0 libboost_filesystem-gcc-mt-1_33_1.so.1.33.1 libboost_filesystem-mt.a libboost_filesystem-mt.so libboost_filesystem-st.a libboost_filesystem-st.so

Change History (5)

comment:1 by René Rivera, 15 years ago

Milestone: Boost 1.34.1To Be Determined
Version: release 1.34.0

comment:2 by Tarjei Knapstad <tarjei.knapstad@…>, 15 years ago

This is a problem with Debians packaging and not with Boost.

It looks like Debian is packaging both a single threaded and multi threaded version of the boost_filesystem lib and add '-st' and '-mt' to the library name. Either modify OpenLibraries to link with either the 'boost_filesystem-mt' (or '-st') or report this upstream to the Debian packagers.

comment:3 by Eric Niebler, 15 years ago

Owner: set to Beman Dawes

in reply to:  2 comment:4 by anonymous, 15 years ago

Replying to Tarjei Knapstad <tarjei.knapstad@gmail.com>:

This is a problem with Debians packaging and not with Boost.

It looks like Debian is packaging both a single threaded and multi threaded version of the boost_filesystem lib and add '-st' and '-mt' to the library name. Either modify OpenLibraries to link with either the 'boost_filesystem-mt' (or '-st') or report this upstream to the Debian packagers.

Hi,

why do you expect -lboost_filesystem is the right way to link with Boost.Filesystem library? Could you please elaborate on how Debian packagers (me) should solve this problem without introducing portability problems? Could you please also point me to the documentation showing -lboost_filesystem as the preferred way to link to that library? Moreover, why Boost.Build does not setup anywhere a library usable with -lboost_filesystem?

Regards, Domenico

comment:5 by Vladimir Prus, 15 years ago

Resolution: invalid
Status: newclosed

This bug is invalid. Linking using -lboost_filesystem is not documented as working, so no bug. While I'm not 100% happy with the current naming scheme, a change in the naming scheme should be result of some mailing list discussion.

Note: See TracTickets for help on using tickets.