|
Boost Users : |
Subject: Re: [Boost-users] undefined reference to `__sync_fetch_and_add_4'
From: Birju Prajapati (Birju.Prajapati_at_[hidden])
Date: 2009-04-24 18:28:43
>
> It was a bit of a long shot, I stumbled across these clues:
>
http://archives.devshed.com/forums/development-94/new-undefined-referenc
e-to-
> sync-fetch-and-add-4t-1971252.html
> http://www.mail-archive.com/users@lists.strongswan.org/msg00050.html
> http://markmail.org/message/dnxjspjzyrbwzqhm
Here we go:
http://stackoverflow.com/questions/130740/link-error-when-compiling-gcc-
atomic-operation-in-32-bit-mode
So with a x86_64 processor, when compiling a 32 bit boost, bjam
shouldn't default to i386, but something 'better'.
>
> And looked into gcc.jam, which defaults to i386. So I realised that
instead of
> passing -march=iN86 (where i> 3) to linking my app, I should try to
pass it to
> bjam when building boost, namely 'instruction-set'
>
> By the way, my bjam version:
> birju_at_xx:~/Downloads/boost_1_38_0$ bjam --help
> Boost.Build V2 (Milestone 12)
> Boost.Jam 03.1.16
> ....blah....
>
> >
> > will tell for sure.
> >
> > - Volodya
> >
> >
> >
> >
> >
> > _______________________________________________
> > Boost-users mailing list
> > Boost-users_at_[hidden]
> > http://lists.boost.org/mailman/listinfo.cgi/boost-users
Schneider Trading
4th Floor,
25 Copthall Avenue
London EC2R 7BP
--------------------------------------------------------
Message from: Birju.Prajapati_at_[hidden]
Message to: Birju.Prajapati_at_[hidden], boost-users_at_[hidden]
Attached files: 0
This e-mail and any files transmitted with it are confidential, may be legally privileged, and are for the sole use of the intended recipient. Copyright in this e-mail and any accompanying document created by us is owned by us. If you are not the intended recipient of this e-mail or any part of it please telephone our IT Department at the number shown above or by e-mail at info_at_schneidertrading.com.
You should not use or disclose to any other person the contents of this e-mail or its attachments (if any), nor take copies. This e-mail is not a representation or warranty and is not intended nor should it be taken to create any legal relations, contractual or otherwise.
Schneider Trading Associates Ltd (Registration No. 3692131) is incorporated in England and Wales and the registered office is at 25 Copthall Avenue, London EC2R 7BP. The company is authorised and regulated by the Financial Services Authority
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