error: stray '\XXX' in program : Why?

后端 未结 4 986
旧时难觅i
旧时难觅i 2020-12-17 16:47

I\'m writing a little program in C++, and come across a strange error :

src/Makefile/Tool.cpp:42:3: error: stray ‘\\302’ in program
src/Makefile/Tool.cpp:42         


        
4条回答
  •  悲&欢浪女
    2020-12-17 17:28

    I had the same issue and it was the character encoding for the spaces before each line. This happened due to copying from notes programs that was synced up with Exchange server & iCloud. All I needed to do is apply a replace all using notepad to all the strange spaces with normal ones and everything compiled normally again.

提交回复
热议问题