昨天在写opencv的程序时,编译出现下面状况
exbot@ubuntu:~/Downloads/opencv/opencv-2.4.9/samples/xcx$ ./build.sh
camtest.cpp:44:1: error: stray ‘\342’ in program
camtest.cpp:44:1: error: stray ‘\200’ in program
camtest.cpp:44:1: error: stray ‘\235’ in program
camtest.cpp:44:1: error: stray ‘\’ in program
camtest.cpp:44:1: error: stray ‘\342’ in program
camtest.cpp:44:1: error: stray ‘\200’ in program
camtest.cpp:44:1: error: stray ‘\235’ in program
错误原因: 程序中出现中文的 的引号 “ ” 应该改为英文引号 " "