Boost logo

Boost Users :

Subject: Re: [Boost-users] [Test] muti-file-test modules and standalone library linking
From: Richard (legalize+jeeves_at_[hidden])
Date: 2011-04-24 00:51:34


[Please do not mail me a copy of your followup]

boost-users_at_[hidden] spake the secret code
<D0815084A2285940865D0DB2E81E6B50FAB2691007_at_[hidden]> thusly:

>Is there a way to write a multi-file-test module in a way that allows me
>to link it to dynamic and/or a static library version?

No.

This is just the way the C/C++ linking process works. You either link
against the static library or the dynamic library. You can't link
against both with the same compile. I suggest you just build your
test code twice and change the link for the two builds.

-- 
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
 <http://legalizeadulthood.wordpress.com/the-direct3d-graphics-pipeline/>
      Legalize Adulthood! <http://legalizeadulthood.wordpress.com>

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