Re: [Boost-bugs] [Boost C++ Libraries] #1871: regex link error with msvc

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1871: regex link error with msvc
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-04-26 09:03:23


#1871: regex link error with msvc
-----------------------------------------+----------------------------------
  Reporter: cedric.naniot@… | Owner: johnmaddock
      Type: Bugs | Status: reopened
 Milestone: Boost 1.36.0 | Component: regex
   Version: Boost 1.46.1 | Severity: Problem
Resolution: | Keywords:
-----------------------------------------+----------------------------------
Changes (by dmitriy.ovdienko@…):

  * status: closed => reopened
  * resolution: invalid =>

Comment:

> you are linking *two different runtime libraries*

 I'm building mixed .NET application. Part of the code is built as native
 C++ code (2.cpp). Part of the code is built as C++/CLI (1.cpp). Runtime
 *is the same* Multithreaded debug DLL (/MDd). I'm linking regex as static
 debug library.

 Let me describe that:

 cl /nologo /Iinclude/boost-1_45_0 /MDd /c /EHsc 2.cpp
 - Compiles 2.cpp with /MDd into 2.obj

 cl /nologo /Iinclude/boost-1_45_0 /clr /LD /MDd 1.cpp 2.obj /link
 /LIBPATH:lib/x32
 - Compiles 1.cpp with /MDd as C++/CLI code, links 2.obj and
 libboost_regex-vc90-mt-gd-1_45.lib into .NET assembly 1.dll


 Try linker switch /verbose to check that.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/1871#comment:8>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC