至于console怎么引用lib
方法一:
And then you could add it to your C++ project:
1,Add the path to the header file to the Additional Include Directories(property - >c/c++ -> General -> Additional Include Directories)
2,Add the path to the .lib file to the Additional Library Directories (property -> linker -> General -> Additional Library Directories)
3,Add the name of the .lib file with its extension to Additional Dependencies (property -> linker -> input -> Additional Dependencies)
For more details about how to use a static library, I suggest you could refer to the Doc.
方法二:
在ConsoleApplication5.vcxproj
<ItemGroup>
<ProjectReference Include="..\StaticLib1\StaticLib1.vcxproj">
<Project>{40aa5f75-e048-4456-84f7-d3ed72fd0122}</Project>
</ProjectReference>
</ItemGroup>