List Info

Thread: Simple bjam question: linking in boost libraries?




Simple bjam question: linking in boost libraries?
user name
2006-06-25 20:21:48
Lally Singh wrote:
> It's helping, and I'm very close!
> 
> The new Jamfile.v2:
> using gcc ;

You'll want to put this in the user-config.jam. See

   http://www.boost.org/boost-build2/doc
/html/bbv2/advanced/configuration.html

for more information.

> Only thing that fails now is an unknown flag given to
ld:
> gcc.link bin/gcc/debug/mfront
> /usr/bin/ld: unknown flag: --start-group
> collect2: ld returned 1 exit status
> 
> Perhaps I need to define a different toolchain? (MacOSX
10.4.6)

If you are building for the Mac, you'll be better off using
darwin (which
derives from gcc):

   using darwin ;

> Also, one slightly-related question: is there a way to
call the
> compiler with another name (e.g. call
"gfilt" instead of "g++")?  I'd
> like to use STLFilt.

Easy. (This is in the above documentation):

   using darwin : 3.2 : /usr/bin/gfilt ;

HTH,
Reece
____________________________________________________________
_____
Try Live.com: where your online world comes together - with
news, sports, weather, and much more.
http://www.live.com/ge
tstarted
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Simple bjam question: linking in boost libraries?
user name
2006-06-25 20:49:13
Thanks so much for your help. I put the using darwin : 3.2 :
/Users/lally/Work/bin/gfilt ; line into ~/user-config.jam,
and it did
exactly what you said.  Wonderfully formatted warnings, and
ld's not
complaining about unknown flags anymore.

But, it's not linking in the libraries.  I'm sorry.
bjam eventually runs:

    /Users/lally/Work/bin/gfilt  -o
"bin/darwin-3.2/debug/mfront"
"bin/darwin-3.2/debug/config.o"
"bin/darwin-3.2/debug/driver.o"
"bin/darwin-3.2/debug/output.o"
"bin/darwin-3.2/debug/main.o"
"bin/darwin-3.2/debug/map.o"
"bin/darwin-3.2/debug/actions.o"
"bin/darwin-3.2/debug/generator.o"     -g

which complains about many, many undefined symbols.

Is there any other means of specifying a library to link in?

On 6/25/06, Reece Dunn <msclrhdhotmail.com> wrote:
> Lally Singh wrote:
> > It's helping, and I'm very close!
> >
> > The new Jamfile.v2:
> > using gcc ;
>
> You'll want to put this in the user-config.jam. See
>
>    http://www.boost.org/boost-build2/doc
/html/bbv2/advanced/configuration.html
>
> for more information.
>
> > Only thing that fails now is an unknown flag given
to ld:
> > gcc.link bin/gcc/debug/mfront
> > /usr/bin/ld: unknown flag: --start-group
> > collect2: ld returned 1 exit status
> >
> > Perhaps I need to define a different toolchain?
(MacOSX 10.4.6)
>
> If you are building for the Mac, you'll be better off
using darwin (which
> derives from gcc):
>
>    using darwin ;
>
> > Also, one slightly-related question: is there a
way to call the
> > compiler with another name (e.g. call
"gfilt" instead of "g++")?  I'd
> > like to use STLFilt.
>
> Easy. (This is in the above documentation):
>
>    using darwin : 3.2 : /usr/bin/gfilt ;
>
> HTH,
> Reece
>
____________________________________________________________
_____
> Try Live.com: where your online world comes together -
with news, sports, weather, and much more.
> http://www.live.com/ge
tstarted
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
>
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )