<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Compilation_error</id>
	<title>Compilation error - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Compilation_error"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Compilation_error&amp;action=history"/>
	<updated>2026-05-04T18:15:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki143/index.php?title=Compilation_error&amp;diff=3684100&amp;oldid=prev</id>
		<title>imported&gt;La musique: Add a synonym of daily use</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Compilation_error&amp;diff=3684100&amp;oldid=prev"/>
		<updated>2023-08-10T15:32:24Z</updated>

		<summary type="html">&lt;p&gt;Add a synonym of daily use&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Compilation error&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;compile error&amp;#039;&amp;#039;&amp;#039; refers to a state when a [[compiler]] fails to compile a piece of [[computer program]] [[source code]], either due to errors in the code, or, more unusually, due to errors in the compiler itself. A compilation error message often helps [[computer programmer|programmers]] [[debugging]] the source code. Although the definitions of compilation and [[Interpreter (computing)|interpretation]] can be vague, generally compilation errors only refer to static compilation and not [[dynamic compilation]]. However, dynamic compilation can still technically have compilation errors,{{Citation needed|date=October 2018}} although many programmers and sources may identify them as [[Runtime error detection|run-time errors]]. Most [[Just in time compiler|just-in-time compilers]], such as the [[Chrome V8|Javascript V8 engine]], ambiguously refer to compilation errors as [[syntax error]]s since they check for them at [[Run time (program lifecycle phase)|run time]].&amp;lt;ref&amp;gt;{{Cite web|url=https://nodejs.org/api/errors.html#errors_class_syntaxerror|title=Errors {{!}} Node.js v7.9.0 Documentation|website=nodejs.org|language=en|access-date=2017-04-14}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Cite web|url=https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError|title=SyntaxError|website=Mozilla Developer Network|language=en-US|access-date=2017-04-14}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
=== Common C++ compilation errors ===&lt;br /&gt;
* Undeclared identifier, e.g.:&lt;br /&gt;
&amp;lt;code&amp;gt;doy.cpp: In function `int main()&amp;#039;:&lt;br /&gt;
doy.cpp:25: `DayOfYear&amp;#039; undeclared (first use this function)&amp;lt;/code&amp;gt;&amp;lt;ref name=&amp;quot;common-c++-compiler-and-linker-errors&amp;quot;&amp;gt;{{cite web|title=Common C++ Compiler and Linker Errors|url=http://www.csee.umbc.edu/courses/undergraduate/341/misc/CommonErrors.shtml|access-date=2008-02-12|archive-url=https://web.archive.org/web/20080216062430/http://www.csee.umbc.edu/courses/undergraduate/341/misc/CommonErrors.shtml|archive-date=2008-02-16|url-status=dead}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This means that the variable &amp;quot;DayOfYear&amp;quot; is trying to be used before being declared.&lt;br /&gt;
&lt;br /&gt;
* Common function undeclared, e.g.:&lt;br /&gt;
&amp;lt;code&amp;gt;xyz.cpp: In function `int main()&amp;#039;: xyz.cpp:6: `cout&amp;#039; undeclared (first use this function)&amp;lt;/code&amp;gt;&amp;lt;ref name=&amp;quot;common-c++-compiler-and-linker-errors&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This means that the programmer most likely forgot to include &amp;#039;&amp;#039;iostream&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
* Parse error, e.g.:&lt;br /&gt;
&amp;lt;code&amp;gt;somefile.cpp:24: parse error before `something&amp;#039;&amp;lt;/code&amp;gt;&amp;lt;ref name=&amp;quot;compiler-linker-and-run-time-errors&amp;quot;&amp;gt;{{cite web|title=Compiler, Linker and Run-Time Errors|url=http://www.cs.bu.edu/teaching/cpp/debugging/errors/}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This could mean that a semi-colon is missing at the end of the previous statement.&lt;br /&gt;
&lt;br /&gt;
=== Internal Compiler Errors ===&lt;br /&gt;
An internal compiler error (commonly abbreviated as ICE) is an error that occurs not due to erroneous source code, but rather due to a bug in the compiler itself. They can sometimes be worked around by making small, insignificant changes to the source code around the line indicated by the error (if such a line is indicated at all),&amp;lt;ref&amp;gt;{{Cite web|url=http://wiki.c2.com/?CompilerBug|title=Compiler Bug|last=Cunningham|first=Ward|date=2010-03-18|website=WikiWikiWeb|access-date=2017-04-14}}&amp;lt;/ref&amp;gt;{{better source needed|date=February 2019}} but sometimes larger changes must be made, such as [[Code refactoring|refactoring]] the code, to avoid certain constructs. Using a different compiler or different version of the compiler may solve the issue and be an acceptable solution in some cases. When an internal compiler error is reached many compilers do not output a standard error, but instead output a shortened version, with additional files attached, which are only provided for internal compiler errors. This is in order to insure that the program doesn&amp;#039;t crash when logging the error, which would make solving the error nigh impossible. The additional files attached for internal compiler errors usually have special formats that they save as, such as &amp;lt;code&amp;gt;.dump&amp;lt;/code&amp;gt; for [[Java (programming language)|Java]]. These formats are generally more difficult to analyze than regular files, but can still have very helpful information for solving the bug causing the crash.&amp;lt;ref&amp;gt;{{Cite web|url=http://jagadesh4java.blogspot.com/2014/09/analyzing-jvm-crash.html|title=Analyzing a JVM Crash|last=జగదేశ్|access-date=2017-04-15}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example of an internal compiler error:&lt;br /&gt;
&amp;lt;pre&amp;gt;somefile.c:1001: internal compiler error: Segmentation fault&lt;br /&gt;
Please submit a full bug report,&lt;br /&gt;
with preprocessed source if appropriate.&lt;br /&gt;
See &amp;lt;http://bugs.gentoo.org/&amp;gt; for instructions.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Debugging]]&lt;br /&gt;
[[Category:Computer errors]]&lt;/div&gt;</summary>
		<author><name>imported&gt;La musique</name></author>
	</entry>
</feed>