Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Test on Windows x64
From: User 8583 (user8583_at_[hidden])
Date: 2013-06-29 06:14:45


On Sat, Jun 29, 2013 at 2:42 AM, Richard
<legalize+jeeves_at_[hidden]>wrote:

> [Please do not mail me a copy of your followup]
>
> boost-users_at_[hidden] spake the secret code
> <CA+b9dje-T1OwyZAqBTvwnrGiOAKKXRMDVLxRYc5jcCWJ0aDGbA_at_[hidden]>
> thusly:
>
> >I compiled the libraries using
> >
> >.\b2 variant=release link=static threading=multi runtime-link=shared
> >toolset=msvc-11.0 address-model=64
> >
> >Linking the libraries with my (x64) test program produces the following
> >error:
> >
> >libboost_unit_test_framework-vc110-mt-gd-1_53.lib(unit_test_suite.obj) :
> >fatal error LNK1112: module machine type 'X86' conflicts with target
> >machine type 'x64'
>
> IIRC, this means that the library wasn't linked with the /machine:x64
> option.
>
> At home, I've been using x64 Windows 7 on trunk and haven't had any
> problems. At work, I've been using 1.52 with a similar command to yours,
> except our scripts are calling bjam and not b2.
>
> Have you verified that your project was built x64?
>

My project in indeed in x64. When I compile it in x86, I am able to link
with the Boost.Test library that is supposed to be x64.

Have you tried doing just:
>
> b2 --with-test
>

I just tried, but it didn't change the outcome.



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