29 Jul
2019
29 Jul
'19
11:59 p.m.
On 30/07/2019 05:11, Cg K wrote:
1>LINK : fatal error LNK1104: cannot open file 'libboost_regex-vc142-mt-gd-x64-1_71.lib'
As you can see in my original email post referred to above, I built another simple program based upon a youtube video and on VS2017 and while it compiled in the youtube video, I received a the same linker error, LNK1104 message as well.
Since the file referred toin the LNK1104 error has the prefix lib, it appears that VS is looking for a static library. I built boost as shared from the Develop command line using the command.
.\bj2 link=shared .
If you're only building the shared libraries, you need to define BOOST_ALL_DYN_LINK when building your application (or any other of your libraries that uses Boost).