Bug 870107 - when coss compiling to windows -lboost_xxx do not work
when coss compiling to windows -lboost_xxx do not work
Status: CLOSED NEXTRELEASE
Product: Fedora
Classification: Fedora
Component: mingw-boost (Show other bugs)
17
Unspecified Unspecified
unspecified Severity low
: ---
: ---
Assigned To: Thomas Sailer
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-25 10:48 EDT by Pierre Blavy
Modified: 2012-12-05 04:51 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-12-05 04:51:40 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Pierre Blavy 2012-10-25 10:48:37 EDT
Description of problem:
When using the mingw version of boost libraries, linking with -lboost_xxx do not work.

How reproducible: always


Steps to Reproduce:
1. install mingw-boost
2. make a C++ program, link it with boost, compile with mingw
 i686-w64-mingw32-g++ main.cpp -o /tmp/test -l boost_regex
  
Actual results:

Linking fail
ld: cannot find -lboost_regex

but lib exists
find /usr/i686-w64-mingw32 | grep boost_regex
/usr/i686-w64-mingw32/sys-root/mingw/lib/libboost_regex-gcc47-mt-1_48.dll.a
/usr/i686-w64-mingw32/sys-root/mingw/lib/libboost_regex-gcc47-mt-d-1_48.a
/usr/i686-w64-mingw32/sys-root/mingw/lib/libboost_regex-gcc47-d-1_48.dll.a
/usr/i686-w64-mingw32/sys-root/mingw/lib/libboost_regex-gcc47-mt-1_48.a
/usr/i686-w64-mingw32/sys-root/mingw/lib/libboost_regex-gcc47-mt-d-1_48.dll.a
/usr/i686-w64-mingw32/sys-root/mingw/lib/libboost_regex-gcc47-d-1_48.a
/usr/i686-w64-mingw32/sys-root/mingw/lib/libboost_regex-gcc47-1_48.a
/usr/i686-w64-mingw32/sys-root/mingw/lib/libboost_regex-gcc47-1_48.dll.a
/usr/i686-w64-mingw32/sys-root/mingw/bin/boost_regex-gcc47-1_48.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/boost_regex-gcc47-mt-1_48.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/boost_regex-gcc47-mt-d-1_48.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/boost_regex-gcc47-d-1_48.dll


Expected results: linker should link with the last working boost lib.
Maybe a symlink pointing to it is missing.


Additional info:
Workaround : link with -lboost_regex-gcc47-1_48
Comment 1 Thomas Sailer 2012-12-05 04:51:40 EST
See:
http://koji.fedoraproject.org/koji/buildinfo?buildID=370849

Note You need to log in before you can comment on or make changes to this bug.