Missing Details on Boost (.lib Files)

Where can I find the lib files to link my program with some Boost libraries? Decided to try my streaming features, but I get

Error 6 fatal error LNK1104: cannot open file 'libboost_thread-vc90-mt-gd-1_42.lib' InterviewPractice

after turning on

Error 6 fatal error LNK1104: cannot open file 'libboost_thread-vc90-mt-gd-1_42.lib' InterviewPractice

I can not find where to get the .lib files for the correct linking on the boost website? Any tips? :)

+4
source share
6 answers

Some of the Boost libraries need to be built (for example, those that use OS-specific functions). You can create them yourself or download the finished package .

+6
source

An alternative solution that I use is to create my own wrapper project with the boost bits that you use. As a rule, in VS.Net it is just a matter of adding cpp files from the boost/libs/blah . They compile very cleanly, so you usually don't need to make any other settings for your project. I believe this method is useful if you want to automate the assembly from SCM, and you do not want to check binary files. It is also very fast, because you only create the bits you need. Another advantage is that itโ€™s easier to create configurations that are relevant to your projects, i.e. Debug / Release, static / dynamic, 32/64 bit. One of them is that you need to disable the auto-binding option by specifying BOOST_ALL_NO_LIB when creating the project.

Alternatively, you'll need a jam tool to create raw libraries for your desired configurations.

+2
source

It all depends on which operating system / compiler you are using.

I suggest you download the boost source code and learn how to create Boost.

0
source

This issue occurs because the Boost installation does not install stream libraries by default. You must specifically select the thread libraries during installation. So, start the installation and select the stream library and select the version of your compiler to download the appropriate files. In this case, for the file "libboost_thread-vc90-mt-gd-1_42.lib" you need to select multithreading to debug the VC ++ compiler version 9.0 with version version 1.42.

Hope this helps ...

0
source

I hit the same communication error using boost version 1.44 and the built-in installer. I unpacked "libboost_data_time_vc100-mt-gd-144.zip", which contains only the missing .lib, and this seems to have solved the problem.

0
source

.lib files are often inserted into a folder called stage , so you may need to replace boost/lib with boost/stage/lib in the Additional libraries section in the project properties section. Section 6 and 6.1 of this tutorial describes this process, but does not include the Boost stage folder.

You can also do a file search for the broken .lib file to get an idea of โ€‹โ€‹the location.

0
source

Source: https://habr.com/ru/post/1308933/


All Articles