What is going wrong when Visual Studio tells me “xcopy exited with code 4”

后端 未结 16 2113
北荒
北荒 2020-12-05 01:33

I\'m not very familiar with post-build events, so I\'m a little confused as to what\'s going wrong with my program. When compiling in visual studio 2010, I get the following

16条回答
  •  误落风尘
    2020-12-05 02:23

    I had the same problem. You could also check which way the slash is pointing. For me it worked to use backslash, instead of forward slash. Example

    xcopy /s /y "C:\SFML\bin\*.dll" "$(OutDir)"
    

    Instead of:

    xcopy /s /y "C:/SFML/bin/*.dll" "$(OutDir)"
    

提交回复
热议问题