C
C
cunion2021-07-17 17:28:27
C++ / C#
cunion, 2021-07-17 17:28:27

Why doesn't Boost.Context find the lib file?

I wanted to use Boost.Context and I got an error when compiling

LNK1104	не удается открыть файл "libboost_context-vc142-mt-gd-x64-1_77.lib" prj	C:\Users\dwk\source\repos\prj\prj\LINK 1


Other libraries (Boost.Asio, Boost.Filesystem, etc.) work without problems.
The code itself:

#include <boost/context/fiber.hpp>

int main(int argc, char** argv)
{
  boost::context::fiber_context context;

  return 0;
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Armenian Radio, 2021-07-17
@0hquazEd

Because the boost is not all tightly templated, there are compiled libs that need to be explicitly linked. How to link specifically depends on the specific build system.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question