In the project properties you must also set HAVE_CONFIG_H
as force include the config header: "windows/confg.h"
By default lib/cpp/windows/force_inc.h defines:
#define BOOST_ALL_NO_LIB 1
#define BOOST_THREAD_NO_LIB 1
This has for effect to have the host application linking against Thrift to have to link with boost thread as a static library. If you wanted instead to link with boost thread
as a shared library,you‘ll need to uncomment those two lines, and recompile.
调用boost的动态库,需要注释掉上面的两行代码,但是在目前来看依旧出现依赖
libboost_thread-vc140-mt-sgd-1_64.lib
不过从这里其实已经可以看出,调用的确实是静态库,其中有s,gd代表的意思是调试,mt代表多线程,
因此链接到boost静态库,说明运行时库指定的不正确,应该指定MDT
详细的资料参考如下;
http://www.cnblogs.com/bluedoctor/p/6236905.html
http://blog.csdn.net/xucuiping_/article/details/5979532
目前采用的boost库是动态编译出来的,因此必须指定正确的运行时库,否则就会编译出错