Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost 1.56.0 has been released
From: Lars Viklund (zao_at_[hidden])
Date: 2014-08-08 10:04:41


On Fri, Aug 08, 2014 at 12:39:18PM +0200, Christoffer Green wrote:
> Hello
>
> I tried upgrading from 1.55 to 1.56 and got a linking error.
>
> I am using mingw32-gcc-4.7.2 on windows 7. I compiled boost with "b2
> toolset=gcc stage release -j8 --build-type=complete link=static
> threading=multi variant=release"
>
> ..\..\..\lib/libPrimeGameEngineRelease.a(GameEngine.o):GameEngine.cpp:(.text$_ZN5boost6detail5win3223GetTickCount64emulationEv+0x27):
> undefined reference to `_InterlockedCompareExchange'
> ..\..\..\lib/libPrimeGameEngineRelease.a(GameEngine.o):GameEngine.cpp:(.text$_ZN5boost6detail5win3223GetTickCount64emulationEv+0x87):
> undefined reference to `_InterlockedCompareExchange'

Static libraries cannot link anything. If you use a static library, in
the absence of autolink pragmas, the onus is on you to link whatever is
needed by the libraries.

In this case, you in your project appear to not be linking in the
library defining InterlockedCompareExchange, which IIRC is located in
Kernel32.lib.

> On Thu, Aug 7, 2014 at 7:54 PM, Marshall Clow <mclow.lists_at_[hidden]> wrote:
>
> > Release 1.56.0 of the Boost C++ Libraries is now available.
> >
> > These open-source libraries work well with the C++ Standard Library, and
> > are usable across a broad spectrum of applications.
> > The Boost license encourages both commercial and non-commercial use.
> >
> > This release contains one new library and numerous enhancements and bug
> > fixes for existing libraries.
> >
> > === Modularization ===
> > Boost version control has migrated to a system using git submodules. This
> > shouldn't make too much of a difference to users, although the directory
> > structure is now a bit different.
> >
> > Parts of some libraries have been moved into different modules, and
> > several new modules have been extracted from existing code. All header
> > paths should remain the same. The new modules are:
> >
> > • Assert: Customizable assert macros. Maintained by Peter Dimov.
> > • Core: Core utilities used by other libraries, with minimal
> > dependencies. Maintained by Peter Dimov, Glen Fernandes and Andrey Semashev.
> > • Lexical_Cast: General literal text conversions, such as an int
> > represented a string, or vice-versa, from Kevlin Henney.
> > • Throw_Exception: A common infrastructure for throwing exceptions from
> > Boost libraries, from Emil Dotchevski.
> > • Winapi: Windows API declarations without <windows.h>, for internal
> > Boost use.
> >
> > === New Libraries ===
> > • Align: Memory alignment functions, allocators, and adaptors, from Glen
> > Fernandes.
> > • Type_Index: Runtime/Compile time copyable type info, from Antony
> > Polukhin.
> >
> >
> > For details, including download links, see
> > http://www.boost.org/users/news/version_1.56.0
> >
> > You can also download directly from SourceForge:
> > http://sourceforge.net/projects/boost/files/boost/1.56.0/
> >
> > To install this release on your system, see
> > http://www.boost.org/doc/libs/release/more/getting_started/index.html
> >
> > Thanks,
> >
> > --The Boost release team
> >
> > Vladimir Prus
> > Rene Rivera
> > Marshall Clow
> > Eric Niebler
> > Daniel James
> > Beman Dawes
> >
> > _______________________________________________
> > Boost-users mailing list
> > Boost-users_at_[hidden]
> > http://lists.boost.org/mailman/listinfo.cgi/boost-users
> >

> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users

-- 
Lars Viklund | zao_at_[hidden]

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