|
Boost-Build : |
Subject: Re: [Boost-build] Easy tickets.
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-02-13 12:29:01
On Friday 13 February 2009 20:19:09 Steven Watanabe wrote:
> AMDG
>
> Vladimir Prus wrote:
> > On Friday 13 February 2009 00:43:16 Steven Watanabe wrote:
> >
> >> AMDG
> >>
> >> These trac tickets have trivial fixes attached.
> >> https://svn.boost.org/trac/boost/ticket/2648
> >>
> >
> > This one is OK.
> >
>
> Done.
>
> >> https://svn.boost.org/trac/boost/ticket/2734
> >>
> >
> > I don't know what is the right extension for a shared library on cygwin.
> > I though .so should work.
> >
>
> .so sort of works. It works if you specify the exact file. It doesn't
> work with -l
>
> $ g++ -I ../trunk test.cpp -o example
> ../trunk/stage/lib/boost_regex-gcc34-mt-d
> -1_39.so
>
> $ g++ -I ../trunk test.cpp -o example -L../trunk/stage/lib
> -lboost_regex-gcc34-
> mt-d-1_39
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld:
> cannot find
> -lboost_regex-gcc34-mt-d-1_39
> collect2: ld returned 1 exit status
Ouch, this is bizarre. Anyway, looking at the comments in gcc.jam I see this:
# On windows (cygwin) i.e. <target-os>cygwin
# libxxx.a static library
# xxx.dll DLL
# libxxx.dll.a import library
So the code was *supposed* to use .dll extension on windows, but did not
for some reason. Please commit the patch. Thanks!
- Volodya
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk