reo7sp / tgbot-cpp

C++ library for Telegram bot API
http://reo7sp.github.io/tgbot-cpp
MIT License
1.01k stars 246 forks source link

LINK : fatal error LNK1104: cannot open file 'libboost_date_time-vc142-mt-gd-x64-1_72.lib #137

Open CyrusDe opened 4 years ago

CyrusDe commented 4 years ago

Wasn't sure where to post this about this issue but here it is.

I'm aware that I can specify Boost's lib directory in VS properties but it doesn't seem to want to open this file. I've been trying to get these tgbot libraries to work for quite a while now. Any help would be appreciated.

image

image

image

OgreTransporter commented 4 years ago

Boost uses automatic linking for the required data and its dependencies. For this to work the directory where the libs are located must be known. This problem is solved by the fix in my PR. Alternatively you can disable automatic linking in the CMakeLists.txt.

CyrusDe commented 4 years ago

@OgreTransporter image

OgreTransporter commented 4 years ago

@CyrusDe Boost include dirs and lib dirs are also required in your Project.