<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="sv">
	<id>https://wiki.linux.se/index.php?action=history&amp;feed=atom&amp;title=cpp%281%29</id>
	<title>cpp(1) - Versionshistorik</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.linux.se/index.php?action=history&amp;feed=atom&amp;title=cpp%281%29"/>
	<link rel="alternate" type="text/html" href="https://wiki.linux.se/index.php?title=cpp(1)&amp;action=history"/>
	<updated>2026-05-27T21:20:44Z</updated>
	<subtitle>Versionshistorik för denna sida på wikin</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>https://wiki.linux.se/index.php?title=cpp(1)&amp;diff=6815&amp;oldid=prev</id>
		<title>Admin: Skapade sidan med &#039;== cpp(1) — Linux manual page ==  === NAME === &#039;&#039;&#039;cpp&#039;&#039;&#039; - The C Preprocessor  === SYNOPSIS === &lt;code&gt; cpp [-D&#039;&#039;macro&#039;&#039;[=&#039;&#039;defn&#039;&#039;]...] [-U&#039;&#039;macro&#039;&#039;] [-I&#039;&#039;dir&#039;&#039;...] [-iquote&#039;&#039;dir&#039;&#039;...] [-M|-MM] [-MG] [-MF &#039;&#039;filename&#039;&#039;] [-MP] [-MQ &#039;&#039;target&#039;&#039;...] [-MT &#039;&#039;target&#039;&#039;...] &#039;&#039;infile&#039;&#039; [[-o] &#039;&#039;outfile&#039;&#039;] &lt;/code&gt; Only the most useful options are given above; see below for a more complete list of preprocessor-specific options. In addition, &#039;&#039;&#039;cpp&#039;&#039;&#039; accepts most &#039;&#039;&#039;gcc&#039;&#039;&#039; driver opt...&#039;</title>
		<link rel="alternate" type="text/html" href="https://wiki.linux.se/index.php?title=cpp(1)&amp;diff=6815&amp;oldid=prev"/>
		<updated>2025-02-11T18:29:50Z</updated>

		<summary type="html">&lt;p&gt;Skapade sidan med &amp;#039;== cpp(1) — Linux manual page ==  === NAME === &amp;#039;&amp;#039;&amp;#039;cpp&amp;#039;&amp;#039;&amp;#039; - The C Preprocessor  === SYNOPSIS === &amp;lt;code&amp;gt; cpp [-D&amp;#039;&amp;#039;macro&amp;#039;&amp;#039;[=&amp;#039;&amp;#039;defn&amp;#039;&amp;#039;]...] [-U&amp;#039;&amp;#039;macro&amp;#039;&amp;#039;] [-I&amp;#039;&amp;#039;dir&amp;#039;&amp;#039;...] [-iquote&amp;#039;&amp;#039;dir&amp;#039;&amp;#039;...] [-M|-MM] [-MG] [-MF &amp;#039;&amp;#039;filename&amp;#039;&amp;#039;] [-MP] [-MQ &amp;#039;&amp;#039;target&amp;#039;&amp;#039;...] [-MT &amp;#039;&amp;#039;target&amp;#039;&amp;#039;...] &amp;#039;&amp;#039;infile&amp;#039;&amp;#039; [[-o] &amp;#039;&amp;#039;outfile&amp;#039;&amp;#039;] &amp;lt;/code&amp;gt; Only the most useful options are given above; see below for a more complete list of preprocessor-specific options. In addition, &amp;#039;&amp;#039;&amp;#039;cpp&amp;#039;&amp;#039;&amp;#039; accepts most &amp;#039;&amp;#039;&amp;#039;gcc&amp;#039;&amp;#039;&amp;#039; driver opt...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Ny sida&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== cpp(1) — Linux manual page ==&lt;br /&gt;
&lt;br /&gt;
=== NAME ===&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;cpp&amp;#039;&amp;#039;&amp;#039; - The C Preprocessor&lt;br /&gt;
&lt;br /&gt;
=== SYNOPSIS ===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cpp [-D&amp;#039;&amp;#039;macro&amp;#039;&amp;#039;[=&amp;#039;&amp;#039;defn&amp;#039;&amp;#039;]...] [-U&amp;#039;&amp;#039;macro&amp;#039;&amp;#039;] [-I&amp;#039;&amp;#039;dir&amp;#039;&amp;#039;...] [-iquote&amp;#039;&amp;#039;dir&amp;#039;&amp;#039;...] [-M|-MM] [-MG] [-MF &amp;#039;&amp;#039;filename&amp;#039;&amp;#039;] [-MP] [-MQ &amp;#039;&amp;#039;target&amp;#039;&amp;#039;...] [-MT &amp;#039;&amp;#039;target&amp;#039;&amp;#039;...] &amp;#039;&amp;#039;infile&amp;#039;&amp;#039; [[-o] &amp;#039;&amp;#039;outfile&amp;#039;&amp;#039;]&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Only the most useful options are given above; see below for a more complete list of preprocessor-specific options. In addition, &amp;#039;&amp;#039;&amp;#039;cpp&amp;#039;&amp;#039;&amp;#039; accepts most &amp;#039;&amp;#039;&amp;#039;gcc&amp;#039;&amp;#039;&amp;#039; driver options, which are not listed here. Refer to the GCC documentation for details.&lt;br /&gt;
&lt;br /&gt;
=== DESCRIPTION ===&lt;br /&gt;
The C preprocessor, often known as &amp;#039;&amp;#039;&amp;#039;cpp&amp;#039;&amp;#039;&amp;#039;, is a &amp;#039;&amp;#039;&amp;#039;macro processor&amp;#039;&amp;#039;&amp;#039; that is used automatically by the C compiler to transform your program before compilation. It allows you to define &amp;#039;&amp;#039;&amp;#039;macros&amp;#039;&amp;#039;&amp;#039;, which are brief abbreviations for longer constructs.&lt;br /&gt;
&lt;br /&gt;
The C preprocessor is intended to be used only with C, C++, and Objective-C source code. In the past, it has been abused as a general text processor. It will choke on input which does not obey C&amp;#039;s lexical rules. For example, apostrophes will be interpreted as the beginning of character constants, and cause errors. Also, you cannot rely on it preserving characteristics of the input which are not significant to C-family languages. If a Makefile is preprocessed, all the hard tabs will be removed, and the Makefile will not work.&lt;br /&gt;
&lt;br /&gt;
Having said that, you can often get away with using cpp on things which are not C. Other Algol-ish programming languages are often safe (Ada, etc.) So is assembly, with caution. &amp;#039;&amp;#039;&amp;#039;-traditional-cpp&amp;#039;&amp;#039;&amp;#039; mode preserves more white space, and is otherwise more permissive. Many of the problems can be avoided by writing C or C++ style comments instead of native language comments, and keeping macros simple.&lt;br /&gt;
&lt;br /&gt;
Wherever possible, you should use a preprocessor geared to the language you are writing in. Modern versions of the GNU assembler have macro facilities. Most high-level programming languages have their own conditional compilation and inclusion mechanisms. If all else fails, try a true general text processor, such as GNU M4.&lt;br /&gt;
&lt;br /&gt;
C preprocessors vary in some details. This manual discusses the GNU C preprocessor, which provides a small superset of the features of ISO Standard C. In its default mode, the GNU C preprocessor does not do a few things required by the standard. These are features which are rarely, if ever, used, and may cause surprising changes to the meaning of a program which does not expect them. To get strict ISO Standard C, you should use the &amp;#039;&amp;#039;&amp;#039;-std=c90&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;-std=c99&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;-std=c11&amp;#039;&amp;#039;&amp;#039;, or &amp;#039;&amp;#039;&amp;#039;-std=c17&amp;#039;&amp;#039;&amp;#039; options, depending on which version of the standard you want. To get all the mandatory diagnostics, you must also use &amp;#039;&amp;#039;&amp;#039;-pedantic&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
This manual describes the behavior of the ISO preprocessor. To minimize gratuitous differences, where the ISO preprocessor&amp;#039;s behavior does not conflict with traditional semantics, the traditional preprocessor should behave the same way. The various differences that do exist are detailed in the section &amp;#039;&amp;#039;&amp;#039;Traditional Mode&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
For clarity, unless noted otherwise, references to &amp;#039;&amp;#039;&amp;#039;CPP&amp;#039;&amp;#039;&amp;#039; in this manual refer to GNU CPP.&lt;br /&gt;
&lt;br /&gt;
=== OPTIONS ===&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;cpp&amp;#039;&amp;#039;&amp;#039; command expects two file names as arguments, &amp;#039;&amp;#039;infile&amp;#039;&amp;#039; and &amp;#039;&amp;#039;outfile&amp;#039;&amp;#039;. The preprocessor reads &amp;#039;&amp;#039;infile&amp;#039;&amp;#039; together with any other files it specifies with &amp;#039;&amp;#039;&amp;#039;#include&amp;#039;&amp;#039;&amp;#039;. All the output generated by the combined input files is written in &amp;#039;&amp;#039;outfile&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Either &amp;#039;&amp;#039;infile&amp;#039;&amp;#039; or &amp;#039;&amp;#039;outfile&amp;#039;&amp;#039; may be &amp;#039;&amp;#039;&amp;#039;-&amp;#039;&amp;#039;&amp;#039;, which as &amp;#039;&amp;#039;infile&amp;#039;&amp;#039; means to read from standard input and as &amp;#039;&amp;#039;outfile&amp;#039;&amp;#039; means to write to standard output. If either file is omitted, it means the same as if &amp;#039;&amp;#039;&amp;#039;-&amp;#039;&amp;#039;&amp;#039; had been specified for that file. You can also use the &amp;#039;&amp;#039;&amp;#039;-o &amp;#039;&amp;#039;outfile&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; option to specify the output file.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise noted, or the option ends in &amp;#039;&amp;#039;&amp;#039;=&amp;#039;&amp;#039;&amp;#039;, all options which take an argument may have that argument appear either immediately after the option, or with a space between option and argument: &amp;#039;&amp;#039;&amp;#039;-Ifoo&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;-I foo&amp;#039;&amp;#039;&amp;#039; have the same effect.&lt;br /&gt;
&lt;br /&gt;
Many options have multi-letter names; therefore multiple single-letter options may &amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039; be grouped: &amp;#039;&amp;#039;&amp;#039;-dM&amp;#039;&amp;#039;&amp;#039; is very different from &amp;#039;&amp;#039;&amp;#039;-d -M&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
=== ENVIRONMENT ===&lt;br /&gt;
This section describes the environment variables that affect how CPP operates. You can use them to specify directories or prefixes to use when searching for include files, or to control dependency output.&lt;br /&gt;
&lt;br /&gt;
Note that you can also specify places to search using options such as &amp;#039;&amp;#039;&amp;#039;-I&amp;#039;&amp;#039;&amp;#039;, and control dependency output with options like &amp;#039;&amp;#039;&amp;#039;-M&amp;#039;&amp;#039;&amp;#039;. These take precedence over environment variables, which in turn take precedence over the configuration of GCC.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;CPATH&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;C_INCLUDE_PATH&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;CPLUS_INCLUDE_PATH&amp;#039;&amp;#039;&amp;#039;, and &amp;#039;&amp;#039;&amp;#039;OBJC_INCLUDE_PATH&amp;#039;&amp;#039;&amp;#039; specify directories for header files. Each variable&amp;#039;s value is a list of directories separated by a special character, much like &amp;#039;&amp;#039;&amp;#039;PATH&amp;#039;&amp;#039;&amp;#039;. For Microsoft Windows-based targets it is a semicolon, and for almost all other targets it is a colon.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;DEPENDENCIES_OUTPUT&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;SUNPRO_DEPENDENCIES&amp;#039;&amp;#039;&amp;#039; control the output of dependencies for Make.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;SOURCE_DATE_EPOCH&amp;#039;&amp;#039;&amp;#039; specifies a UNIX timestamp to be used in replacement of the current date and time in the &amp;#039;&amp;#039;&amp;#039;__DATE__&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;__TIME__&amp;#039;&amp;#039;&amp;#039; macros, so that the embedded timestamps become reproducible.&lt;br /&gt;
&lt;br /&gt;
=== SEE ALSO ===&lt;br /&gt;
&amp;#039;&amp;#039;gpl&amp;#039;&amp;#039;(7), &amp;#039;&amp;#039;gfdl&amp;#039;&amp;#039;(7), &amp;#039;&amp;#039;fsf-funding&amp;#039;&amp;#039;(7), &amp;#039;&amp;#039;gcc&amp;#039;&amp;#039;(1), and the Info entries for &amp;#039;&amp;#039;cpp&amp;#039;&amp;#039; and &amp;#039;&amp;#039;gcc&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
=== COPYRIGHT ===&lt;br /&gt;
Copyright (c) 1987-2019 Free Software Foundation, Inc.&lt;br /&gt;
&lt;br /&gt;
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation. A copy of the license is included in the man page &amp;#039;&amp;#039;gfdl&amp;#039;&amp;#039;(7). This manual contains no Invariant Sections. The Front-Cover Texts are (a) (see below), and the Back-Cover Texts are (b) (see below).&lt;br /&gt;
&lt;br /&gt;
(a) The FSF&amp;#039;s Front-Cover Text is:&lt;br /&gt;
&lt;br /&gt;
A GNU Manual&lt;br /&gt;
&lt;br /&gt;
(b) The FSF&amp;#039;s Back-Cover Text is:&lt;br /&gt;
&lt;br /&gt;
You have freedom to copy and modify this GNU Manual, like GNU software. Copies published by the Free Software Foundation raise funds for GNU development.&lt;br /&gt;
&lt;br /&gt;
=== COLOPHON ===&lt;br /&gt;
This page is part of the &amp;#039;&amp;#039;gcc&amp;#039;&amp;#039; (GNU Compiler Collection) project. Information about the project can be found at [http://gcc.gnu.org/]. If you have a bug report for this manual page, see [http://gcc.gnu.org/bugs/].&lt;br /&gt;
&lt;br /&gt;
= Sidslut =&lt;br /&gt;
&lt;br /&gt;
Orginalhemsidan på Engelska :https://man7.org/linux/man-pages/man1/cpp.1.html&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
Det här är en maskinöversättning av Linux man sidor till svenska. Om du hittar fel är vi tacksamma om du rapporterar dem via formuläret som finns på &lt;br /&gt;
https://www.linux.se/kontaka-linux-se/&lt;br /&gt;
&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;Tack till [https://pc-service.se PC-Service] som har  sponsrat [https://www.linux.se Linux.se] med webbhotell.&lt;br /&gt;
&lt;br /&gt;
[[Kategori:Linuxmanual grupp 1]]&lt;br /&gt;
[[Kategori:Linuxmanual]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>