Link: http://blog.chinaunix.net/uid-23089249-id-61541.html
I got a few header files from my colleagues. It’s ok to compile with GCC, but a whole bunch of them came up when I compiled with ARM-Linux-gcc!
SerialPort.h:1: error: stray ‘\357’ in program
SerialPort.h:1: error: stray ‘\273’ in program
SerialPort.h:1: error: stray ‘\277’ in program
Look at these errors confused, after looking up the Internet, found that some characters in the file compiler does not support. If you look for these characters one by one, you’ll probably be looking for a long time! The simplest solution:
Put the files into The Windows system, use “Notepad” to open these files, and then “save as”, choose the code ASNI, and then under Linux to re-compile with the compiler, generally can pass!
Experience:
The first time: unknown;
Second time: when compiling QT program, prompt this error; According to the above method solved.
Read More:
- A solution to the problem of “straight ‘\ 357’ in program” when compiling GCC
- error: How to solve stray ‘\342’ in program
- error: stray ‘\240’ in program
- Error: stray ‘- 239’in program solution
- error: stray ‘\357’ in program
- error: stray ‘\302’ in program
- C language error: stray ‘\ 240’ in program|
- The problem of window flash after C + + program is compiled and run
- Solution: when cmake is compiled, “error in configuration process project files may be invalid” appears
- Gcc compiler warning solution: “extra tokens at end of ifndef directive” Tags: GCC, warning
- Solution to prompt run time error “438” when a VB program is opened
- Error: the solution of “241” and “343” in program
- Python program uses OS. System () method to call exe program, resulting in no response of main program process
- Solution to the problem of GCC file format not recognized
- [OpenGL] cannot start this program because the computer is missing glut32.dll. Try to re install the program to fix this problem. …
- This program cannot be started because vcruntime140 is missing from your computer_ 1.dll。 Try to install the program again to solve the problem.
- When cmake is compiled, “error in configuration process project files may be invalid” appears
- The problem of strncpy and the solution of GCC compile time checking
- Installing GCC reduced version GCC 4.4.6 under Linux