Under the Resources tree (which is under Configuration Properties),
click "General" and make sure that for Additional Include Directories,
you've specified "$(IntDir)" for additional include directories. This
should not be blank. And we're specifying the intermediate directory
because that's where the generated type library will go during
compilation.
转自:https://blog.csdn.net/xiliang_pan/article/details/8281473