wo or more files with the name of logging.cc will produce outputs to the same location.

来源:互联网 发布:java nanotime 毫秒 编辑:程序博客网 时间:2024/05/17 15:02

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(936,5): warning MSB8027: Two or more files with the name of logging.cc will produce outputs to the same location. This can lead to an incorrect build result.  The files involved are ..\channel\logging.cc, ..\system_wrappers\source\logging.cc.


编译一个静态库报了一个这个警告,没有注意,后面编译动态库,包含这个静态库,才发现连接错误。

后面把这两个相同的文件名修改成不同的,就可以链接成功了。


0 0
原创粉丝点击