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

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.


編譯一個靜態庫報了一個這個警告,沒有注意,後面編譯動態庫,包含這個靜態庫,才發現連接錯誤。

後面把這兩個相同的文件名修改成不同的,就可以鏈接成功了。


發佈了81 篇原創文章 · 獲贊 32 · 訪問量 70萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章