Visual Studio warning about copies of files with different contents

前端 未结 13 773
北恋
北恋 2021-02-05 00:05

When I go to debug my C++ project in Visual Studio, up pops a little warning dialogue box that tells me:

A copy of datum.h was found in
c:/users/brad/desktop/sou         


        
相关标签:
13条回答
  • 2021-02-05 00:51

    I solved it:

    1. Close the window of the .h file in Visual Studio if it's open.
    2. Close Visual Studio.
    3. CUT the .h file from its normal location and paste it into a temporary folder that VS doesn't know about.
    4. Restart VS and compile. It'll complain about the missing .h file. Good -- Make the bastard beg for it!
    5. Paste the .h file back into its original location.
    6. Compile. VS will gratefully accept the missing file. (Damn I hate Microsoft!)
    0 讨论(0)
提交回复
热议问题