Parse error in ubantu/Linux system
This problem took me some time. In order to avoid forgetting to post a blog in the future
Phenomenon:
The execution code and error reporting contents are as follows:
reason:
This is because the standard supported by the Linux gcc compiler is different from the current C89 standard. This C standard requires that the declaration of variables in a block be placed in front of all non declarative statements.
We can see that on line 266, a definition statement is placed before the declaration statement, so an error is reported
Solution:
Put 266 this non declarative statement under all declarative statements
as shown in the following figure:
the compilation succeeded without error, and the problem was solved successfully
Read More:
- Error in compiling Android AOSP by Ubantu [How to Solve]
- Linux Use dtc generate dtb Error: “FATAL ERROR: Unable to parse input tree“
- [Solved] Linux Error: ENOSPC: System limit for number of file watchers
- Linux system service command error: Failed to allocate directory watch: Too many open files
- [Solved] Linux virtual machine startup error: operating system not found
- Prompt “entering emergency mode. Exit the shell to continue” if the Linux operating system does not start normally
- [Solved] Linux Error: Error: ENOSPC: System limit for number of file watchers
- [Solved] docker Error: System has not been booted with systemd as init system (PID 1). Can‘t operate. Failed to con
- System has not been booted with systemd as init system (PID 1). Can‘t operate
- [Solved] Linux — 9 — txt files are copied from windows to Linux and read error
- Installation and configuration of redis in Linux
- [Solved] Linux Compile Error: error: ‘for’ loop initial declarations are only allowed in C99 mode
- How to Create Threads in Linux
- How to Solve Xmind Install Error in Ubuntu System
- The problem of inconsistent host names in building rabbitmq on Linux
- [Solved] Error in installing backups.lzma for Python on Linux
- Grep: How to Find All the Files Containing a String in Linux
- [Solved] Cannot run program “svn” (in directory “D: xxxx”): CreateProcess error=2, the system cannot find the specified file.
- Error in Linux running file: bash: $’\r’: command not found
- Restart and stop of nginx in Linux service