|
Boost Users : |
Subject: Re: [Boost-users] Adding C++/CLI code to my project makes app crash on startup
From: Steven Boswell II (ulatekh_at_[hidden])
Date: 2017-12-06 18:51:32
On Tue, Dec 5, 2017 at 10:31 PM, Sergio Basurco via Boost-users <boost-users_at_[hidden]> wrote:
>I'm using Boost 1.65.1 with Visual Studio 2015 (v140 compiler). Also, I'm using the following libs dynamically:
>
>[...]
>
>And I want to add C++/CLI code which is built with /clr. This used to
>work with v110 and Boost 1.57. Now I'm getting this error just when
>launching the application.
>
>0xc000007b
>
>All binaries are 32bits. I'm also using the following define: BOOST_ALL_DYN_LINK
>
>Any idea on why this may happen?
A Google search says that error 0xc000007b happens when you mix 64-bit and 32-bit code.
Keep in mind that CLI code has to be explicitly compiled as 32-bit.The "Any CPU" setting tends to pick the OS' native word-size, which is probably 64-bit.
-Steven
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