<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Issue with Undefined References for Global Variables in Static Library in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/Issue-with-Undefined-References-for-Global-Variables-in-Static/m-p/2146429#M13672</link>
    <description>&lt;P&gt;&lt;BR /&gt;Thank you for your interest in our products and for contributing to our community.&lt;/P&gt;
&lt;P&gt;Please refer to &lt;A href="https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Add-a-static-library-file-into-S32DS-GCC-project/ta-p/1110308" target="_blank" rel="noopener"&gt;HOWTO: Add a static library file into S32DS GCC project.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I hope this information is helpful. Feel free to reach out if you have any further questions.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Aug 2025 23:50:23 GMT</pubDate>
    <dc:creator>_Leo_</dc:creator>
    <dc:date>2025-08-04T23:50:23Z</dc:date>
    <item>
      <title>Issue with Undefined References for Global Variables in Static Library</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Issue-with-Undefined-References-for-Global-Variables-in-Static/m-p/2142248#M13654</link>
      <description>&lt;P class=""&gt;Dear NXP Team,&lt;/P&gt;&lt;P class=""&gt;I have a source file&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;filename.c&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and its corresponding header&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;filename.h. Within&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;filename.c, I define and initialize some global variables, which are declared as&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;extern&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;filename.h.&lt;/P&gt;&lt;P class=""&gt;I have compiled&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;filename.c&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;into a static library file (filename.a). However, when linking this static library, I encounter "undefined reference" errors related to those global variables.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ranjith_kumar_0-1753764504383.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/349872i4581D3C7CD9EE3CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ranjith_kumar_0-1753764504383.png" alt="Ranjith_kumar_0-1753764504383.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Could you please provide guidance or best practices on how to correctly manage these global variables with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;extern&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;declarations and static library creation to resolve the undefined reference issue?&lt;/P&gt;&lt;P class=""&gt;Thank you for your support.&lt;/P&gt;&lt;P class=""&gt;Best regards,&lt;/P&gt;&lt;P class=""&gt;P.Ranjth kumar&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 04:49:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Issue-with-Undefined-References-for-Global-Variables-in-Static/m-p/2142248#M13654</guid>
      <dc:creator>Ranjith_kumar</dc:creator>
      <dc:date>2025-07-29T04:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Undefined References for Global Variables in Static Library</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Issue-with-Undefined-References-for-Global-Variables-in-Static/m-p/2146429#M13672</link>
      <description>&lt;P&gt;&lt;BR /&gt;Thank you for your interest in our products and for contributing to our community.&lt;/P&gt;
&lt;P&gt;Please refer to &lt;A href="https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Add-a-static-library-file-into-S32DS-GCC-project/ta-p/1110308" target="_blank" rel="noopener"&gt;HOWTO: Add a static library file into S32DS GCC project.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I hope this information is helpful. Feel free to reach out if you have any further questions.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 23:50:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Issue-with-Undefined-References-for-Global-Variables-in-Static/m-p/2146429#M13672</guid>
      <dc:creator>_Leo_</dc:creator>
      <dc:date>2025-08-04T23:50:23Z</dc:date>
    </item>
  </channel>
</rss>

