What is a compilation error?

Compilation error is a mistake when creating a machine code for a computer language. Many computer languages ​​build their source code into machine code files before creating or performing programs. The most common type of compilation error is the basic syntax error; One small error can cause many code problems.

The most common object -oriented programming languages, C ++ and Java®, use compilation in some form. This differs significantly from interpreted languages ​​that use raw source code while running. The tongue may not be object to be compilible; For example, C ++ can be structured using object -oriented or procedural programming.

The most common cause of compilation errors is the syntax error. Syntax errors are errors in the form of a raw source code, usually caused by violations of the principles of computer language. These errors can be as simple as forgotten on the semi -column on the end line of the code or foldé as initialization of the field incorrectly. It is usually not extremely difficult to find and diagnose these errors; Most compiler show errors when they meet and do not allow machine code to form until the errors are repaired. However, different languages ​​are used by different compilers, so it is possible that a particular type of compilation error can be present in one language, but not in another.

Depending on the language and compiler used, one compilation error can show as many errors as possible. For example, forgetting the semicolon at the end of the line, when the language requires it, can cause analysis errors because the compiler does not know when the specific line is to end. This analysis error can be manifested by so many compilation errors, so it seems that instead of one small typing suddenly there are terrible code problems. In general, careful attention to compliance with computer language rules can prevent these types of errors. For the same reason if the ODA sudden compilation errors appear, an experienced programmer usually concludes that most of them have caused a single small mistake.

The common misconception of starting programmers is that the compilation error will turn out a computer, and that is never the case. Compilation errors are limited to compilers and the creation of machine code rarely causes problems of the entire computer system. No program is reliable, including a compiler, but the chances of causing problems with the whole computer simply compiling code or meeting the compilation error are extremely small. Once all compilation errors are fixed, it is likely that the program will be running smoothly as it should.

IN OTHER LANGUAGES

Was this article helpful? Thanks for the feedback Thanks for the feedback

How can we help? How can we help?