Boost logo

Boost Users :

From: Damien (damien_at_[hidden])
Date: 2021-02-14 03:56:10


On 2/13/2021 7:41 PM, Nathan Ernst via Boost-users wrote:
> It looks to me like a runtime issue and not a build issue. You need to
> make sure you have the path to the Boost DLLs in your application's
> runtime PATH environment variable before it runs (or the DLLs in the
> same directory as your application).
>
> Hope this helps.
>
> Regards,
> Nathan
>
> On Sat, Feb 13, 2021 at 8:13 PM Anand Arumugam via Boost-users
> <boost-users_at_[hidden] <mailto:boost-users_at_[hidden]>> wrote:
>
> Hello all,
>
> How to properly link boost library DLLs? I have #define-d the
> following:
>
> #define BOOST_ALL_DYN_LINK
> #define BOOST_DYN_LINK
> #define BOOST_THREAD_USE_DLL
> #define BOOST_THREAD_PROVIDES_FUTURE_CONTINUATION
> #define BOOST_THREAD_VERSION 4
>
> And I still get the following problem:
>
> ---------------------------
> testprogs.exe - System Error
> ---------------------------
> The code execution cannot proceed because
> boost_thread-vc142-mt-gd-x64-1_75.dll was not found. Reinstalling
> the program may fix this problem.
> ---------------------------
> OK
> ---------------------------
>
> I get the same error when I try to run the program using DLLs that
> I built and while running using the prebuilt binaries.
>
> Not sure what step I'm missing. The program runs fine if I build
> using static libs. The problem is only with DLLs.
>
> Any help is much appreciated.
>
> Thanks,
> Anand.
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden] <mailto:Boost-users_at_[hidden]>
> https://lists.boost.org/mailman/listinfo.cgi/boost-users
> <https://lists.boost.org/mailman/listinfo.cgi/boost-users>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> https://lists.boost.org/mailman/listinfo.cgi/boost-users

Anand,

This is easy to fix on Windows. Windows first looks for dlls in the
directory that the exe is launched from. Copy the boost dlls to the
directory that testprogs.exe is in.

Damien



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