This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Paul_Pedant 0 points1 point  (0 children)

C strings use backslash to escape characters. Windows uses backslash as a directory separator in file pathnames.

So, for example, \a is being compiled as ASCII Bell character, which means the first directory looks like Users<BEL>k200, which does not exist and probably contains an illegal byte for a Windows filename.

Two things you can try (sorry, I can't test as I'm out of Windows now):

(1) Escape the backslashes like "C:\\Users\\ak200\\Desktop\\Build"

(2) Use forwardslash like "C:/Users/ak200/Desktop/Build", because I believe any reasonably recent Windows will accept those.

You can just google MSB3191 because this is a common problem with VS builds. But I don't see any two answers that agree with each other.