Link: http://blog.chinaunix.net/uid-23089249-id-61541.html
I took a few header files from my colleagues. It’s OK to compile them with GCC, but there are a lot of them when I compile them 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
After looking at these errors, I found that some characters in the file are not supported by the compiler. If you look for these characters one by one, it will take a long time! The simplest solution:
Put the files in the windows system, open these files with Notepad, and then save them as. The code is Asni, and then compile them with the compiler under Linux. Generally, they can pass!
Experience:
The first time: unknown;
Second time: when compiling QT program, prompt this error; solve it according to the above method.
Read More:
- Solution to stray’\357′ in program when gcc is compiled
- A strange problem in compiling OpenGL program
- Solution to the problem of GCC file format not recognized
- Cannot run program “make” when compiling APM firmware with eclipse under Windows: launching failed problem
- The problem of strncpy and the solution of GCC compile time checking
- OpenGL learning — problems encountered in compiling OpenGL program for the first time
- Gcc compiler warning solution: “extra tokens at end of ifndef directive” Tags: GCC, warning
- Solution of vs program flashback problem
- [OpenGL] cannot start this program because the computer is missing glut32.dll. Try to re install the program to fix this problem. …
- Error: the solution of “241” and “343” in program
- There was a problem sending the command to the program in Excel 2010
- This program cannot be started because vcruntime140 is missing from your computer_ 1.dll。 Try to install the program again to solve the problem.
- Python program uses OS. System () method to call exe program, resulting in no response of main program process
- Solution to the problem of console output window’s CMD flashing back when vs2015 writes C + + program
- C language — to solve the problem of program flashback when programming (in VS)
- The use of Chinese characters in Qt and the solution to the “error C2001: newline in constant” problem
- To solve the problem of flashback of calling class function of glutsolidcube() in Win32 program
- The problem of failed to create process occurs in pyinstaller package program of Python
- Installing GCC reduced version GCC 4.4.6 under Linux
- Mex compiler error handling in MATLAB and GCC installation in Ubuntu