I have compiled project with qmake (qmake -project; qmake; nmake). When I opened file .pro, to reload project I got the following error:
The item "debug\moc_Rls.cpp" already exists under the filter "Generated Files"
Project, being part of soultion now is unavailiable when I open solution.
The evidient question: what to do?
Oh, sorry it was my mistake I thought you were on Linux.
Follow these step:
1.Open the [Project_Name].vcxproj.filters
file under project directory.
2.See the following lines (I am pasting mine)
<ItemGroup>
<ClCompile Include="Main.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="FunctBank.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="funcDef.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
3.Here you will see debug\moc_Rls.cpp
defined twice under two filters.
4.One of them I can guess is
<ClInclude Include="debug\moc_Rls.cpp">
<Filter>Generated Files</Filter>
</ClInclude>
And the other one you have to detect yourself.
After finding remove that filter and your project will run smoothly.