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
passing -march=iN86 (where i> 3) to linking my app, I should try to
instead of pass it to
bjam when building boost, namely 'instruction-set'
By the way, my bjam version: birju@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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Schneider Trading 4th Floor, 25 Copthall Avenue London EC2R 7BP -------------------------------------------------------- Message from: Birju.Prajapati@schneidertrading.com Message to: Birju.Prajapati@schneidertrading.com, boost-users@lists.boost.org 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@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