<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Gcc on Blog GoHugo de Fredô : Linux, Proxmox, IA, Trail, Course, Randonnée, Gravel, Ski de Randonnée</title>
    <link>https://move.cyber-neurones.org/tags/gcc/</link>
    <description>Recent content in Gcc on Blog GoHugo de Fredô : Linux, Proxmox, IA, Trail, Course, Randonnée, Gravel, Ski de Randonnée</description>
    <generator>Hugo</generator>
    <language>fr</language>
    <lastBuildDate>Mon, 05 Sep 2022 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://move.cyber-neurones.org/tags/gcc/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Ubuntu 22.04.1 : GCC 11 ( -fcommon )  : Issue ... Multiple definition of.</title>
      <link>https://move.cyber-neurones.org/post/2022/09/2022-09-05-ubuntu-22-04-1-gcc-11-fcommon-issue-multiple-definition-of/</link>
      <pubDate>Mon, 05 Sep 2022 00:00:00 +0000</pubDate>
      <guid>https://move.cyber-neurones.org/post/2022/09/2022-09-05-ubuntu-22-04-1-gcc-11-fcommon-issue-multiple-definition-of/</guid>
      <description>&lt;p&gt;Avec GCC 11 on a changer la valeur par défaut.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;GCC 11 : -fno-common (Release note : &lt;a href=&#34;https://gcc.gnu.org/gcc-11/changes.html&#34;&gt;https://gcc.gnu.org/gcc-11/changes.html&lt;/a&gt; )&lt;/li&gt;&#xA;&lt;li&gt;GCC 10 : -fcommon&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Donc pour supprimer les problèmes (de facon rapide) il suffit d&amp;rsquo;ajouter la directive -fcommon. La solution idéale est de revoir le code &amp;hellip; et surtout les .h.&lt;/p&gt;&#xA;&lt;p&gt;Misère.&lt;/p&gt;&#xA;&lt;p&gt;Pour information Ubuntu &lt;strong&gt;22.04.1&lt;/strong&gt; utilise gcc &lt;strong&gt;11.2.0-19&lt;/strong&gt; .&lt;/p&gt;&#xA;&lt;p&gt;La doc : &lt;a href=&#34;https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html&#34;&gt;https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;-fcommon&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;In C code, this option controls the placement of global variables defined without an initializer, known as &lt;em&gt;tentative definitions&lt;/em&gt; in the C standard. Tentative definitions are distinct from declarations of a variable with the &lt;code&gt;extern&lt;/code&gt; keyword, which do not allocate storage.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
