Problem phenomenon:
Cause of problem:
This error is basically generated by copying the code from the web page and compiling it. Because the copied code contains Chinese spaces and characters, it can’t be distinguished by the naked eye.
Solution:
1. When the amount of code is small, it is best to re type it at the error location, then save it and recompile it.
Error prompts the location information of the error. Find the corresponding place to change.
2. It can also be used when there are many codes, or the replacement function of GEDIT can be used to replace with standard spaces, which is more labor-saving.
Find characters in error:
Under Linux, you can:
cat xxx.c -A
Chinese will be displayed as characters with red lines.
Read More:
- Linux Error: error: stray ‘\302‘ in program [Solved]
- [Solved] Cannot run program “svn” (in directory “D: xxxx”): CreateProcess error=2, the system cannot find the specified file.
- Linux gets the program PID according to the port
- [Solved] C++: fatal error: Killed signal terminated program cc1plus
- [Solved] c++: fatal error: Killed signal terminated program cc1plus
- [Solved] ERROR: Linux route delete command failed: external program exited with error status: 2
- [Solved] Ubuntu Compile Rust Program Error: failed to run custom build command for openssl-sys v0.9.39
- [Solved] Linux program error: dpkg is interrupted. You must manually run ‘sudo dpkg — configure – a’
- Vmware Virtual Machine ubuntu Compile Error: fatal error: Killed signal terminated program cc1plus
- [Solved] UnicodeEncodeError: ‘ascii‘ codec can‘t encode characters in position 3-9: ordinal not in range(128)
- Solutions to errors in installing xunsearch engine in centos8.0
- Ubuntu20.04 install the ROS noetic version in catkin_Problems in make compilation
- The upgrade of Ubuntu results in an error in the compilation of Android Jack [Two Method to Solve]
- When installing software in Ubuntu, it prompts: E: You don’t have enough free space in /var/cache/apt/archives/.
- Parse error in ubantu/Linux system [How to Solve]
- [Solved] Centos7 Error: gcc: configure: error: in build‘: configure: error: no acceptable C compiler found in $PATH
- Vector series in actual C + +_ To_ fit()
- Chinese garbled problem when running. C file in Linux
- [Solved] TensorRT Error: Assertion Error in trtSmToCask: 0 (Unsupported SM.)
- [Solved] Linux Compile Error: error: ‘for’ loop initial declarations are only allowed in C99 mode