Qt+VS编译出错:Two or more files with the name of moc_Geometry.cpp will produce outputs to the same location

warning MSB8027: Two or more files with the name of moc_Geometry.cpp will produce outputs to the same location. This can lead to an incorrect build result.  The files involved are GeneratedFiles\Debug\moc_XXX.cpp, GeneratedFiles\Release\moc_XXX.cpp.
 
 
1、打开QT的Qt Project Setting
2、修改MocDirectory为: .\GeneratedFiles




猜你喜欢

转载自www.cnblogs.com/judes/p/9034685.html