Message from discussion
statically linked boost libs with VS2010 missing ?
Received: by 10.43.53.144 with SMTP id vq16mr7461073icb.26.1344409416123;
Wed, 08 Aug 2012 00:03:36 -0700 (PDT)
X-BeenThere: boost-list@googlegroups.com
Received: by 10.50.163.42 with SMTP id yf10ls1442824igb.1.gmail; Wed, 08 Aug
2012 00:03:36 -0700 (PDT)
Received: by 10.43.93.193 with SMTP id bv1mr7480080icc.24.1344409416017;
Wed, 08 Aug 2012 00:03:36 -0700 (PDT)
Received: by 10.43.93.193 with SMTP id bv1mr7480079icc.24.1344409416007;
Wed, 08 Aug 2012 00:03:36 -0700 (PDT)
Return-Path: <boost-users-boun...@lists.boost.org>
Received: from wowbagger.osl.iu.edu (wowbagger.osl.iu.edu. [129.79.245.252])
by gmr-mx.google.com with ESMTP id xd1si1117508igb.1.2012.08.08.00.03.35;
Wed, 08 Aug 2012 00:03:36 -0700 (PDT)
Received-SPF: neutral (google.com: 129.79.245.252 is neither permitted nor denied by best guess record for domain of boost-users-boun...@lists.boost.org) client-ip=129.79.245.252;
Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 129.79.245.252 is neither permitted nor denied by best guess record for domain of boost-users-boun...@lists.boost.org) smtp.mail=boost-users-boun...@lists.boost.org
Received: from wowbagger.osl.iu.edu (localhost [127.0.0.1])
by wowbagger.osl.iu.edu (Postfix) with ESMTP id B2E362F81D6;
Wed, 8 Aug 2012 03:03:35 -0400 (EDT)
X-Original-To: boost-us...@lists.boost.org
Delivered-To: boost-us...@lists.boost.org
Received: from mail.acc.umu.se (mail.acc.umu.se [130.239.18.156])
by wowbagger.osl.iu.edu (Postfix) with ESMTP id 92A6D2F8134
for <boost-us...@lists.boost.org>; Wed, 8 Aug 2012 03:01:24 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
by amavisd-new (Postfix) with ESMTP id 9DB832E7
for <boost-us...@lists.boost.org>;
Wed, 8 Aug 2012 09:01:21 +0200 (MEST)
X-Virus-Scanned: amavisd-new at acc.umu.se
Received: from lenin.acc.umu.se (lenin.acc.umu.se [130.239.18.144])
by mail.acc.umu.se (Postfix) with ESMTP id 8FB8D2E6
for <boost-us...@lists.boost.org>;
Wed, 8 Aug 2012 09:01:20 +0200 (MEST)
Received: by lenin.acc.umu.se (Postfix, from userid 24456)
id 7042A2D; Wed, 8 Aug 2012 09:01:20 +0200 (CEST)
Date: Wed, 8 Aug 2012 09:01:20 +0200
From: Lars Viklund <z...@acc.umu.se>
To: boost-us...@lists.boost.org
Message-ID: <20120808070119.GJ557...@lenin.acc.umu.se>
Mail-Followup-To: Lars Viklund <z...@acc.umu.se>,
boost-us...@lists.boost.org
References: <2d65b2631c2c2e9d1c912a9b32696...@nurotek.com.au>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <2d65b2631c2c2e9d1c912a9b32696...@nurotek.com.au>
User-Agent: Mutt/1.5.19 (2009-01-05)
Subject: Re: [Boost-users] statically linked boost libs with VS2010 missing ?
X-BeenThere: boost-us...@lists.boost.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: boost-us...@lists.boost.org
List-Id: Boost Users mailing list <boost-users.lists.boost.org>
List-Unsubscribe: <http://lists.boost.org/mailman/options.cgi/boost-users>,
<mailto:boost-users-requ...@lists.boost.org?subject=unsubscribe>
List-Archive: <http://lists.boost.org/boost-users>
List-Post: <mailto:boost-us...@lists.boost.org>
List-Help: <mailto:boost-users-requ...@lists.boost.org?subject=help>
List-Subscribe: <http://lists.boost.org/mailman/listinfo.cgi/boost-users>,
<mailto:boost-users-requ...@lists.boost.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: boost-users-boun...@lists.boost.org
Errors-To: boost-users-boun...@lists.boost.org
On Wed, Aug 08, 2012 at 10:21:41AM +1000, tre...@nurotek.com.au wrote:
> Hi all,
>
> I'm new to boost, and I'm trying to compile a windows console app
> statically so the end user doesn't need vcredist.
>
> I've changed my code generation options to use /mt (static
> multithreaded) instead of dynamic multithreaded, but the linker cannot
> find any libs with libboost*-sgd*.lib (ie.any static boost libs), and
> they certainly don't exist on my computer. I've performed a --clean-all
> and recompiled boost using "b2 link=static", but the libs are still
> missing, even though the compile seems to work fine - and the generated
> libs are actually following the dynamic naming convention, not the
> static convention.
>
> Is this some MSVC toolchain issue ? Is there another option I need to be
> using for this toolchain ?
link=static makes static-linked Boost libraries (lib- prefix)
runtime-link=static makes libraries linked against
the static runtime (-s-).
Your use case probably wants both static link and runtime-link, as
dynamic linking a Boost that uses a static runtime is pretty much always
a bad thing.
--
Lars Viklund | z...@acc.umu.se
_______________________________________________
Boost-users mailing list
Boost-us...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users