<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Linking issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110436/linking-issue</link><description>Getting undefined reference to `&amp;lt;already_defined_variable&amp;gt;&amp;#39; 
 
 So I was using SES v5.70a 
 Actually I was new for the developments using SES for Arm MCs 
 I picked up an RTOS example and started adding the source files and header files to the project</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 May 2024 16:56:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110436/linking-issue" /><item><title>RE: Linking issue</title><link>https://devzone.nordicsemi.com/thread/484936?ContentTypeID=1</link><pubDate>Mon, 20 May 2024 16:56:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f05baa1a-0ebe-4449-9fed-49fe66588901</guid><dc:creator>somprakashrao</dc:creator><description>&lt;p&gt;Sure . Thanks for the support &lt;a href="https://devzone.nordicsemi.com/members/amanda"&gt;Amanda Hsieh&lt;/a&gt;&amp;nbsp;so far.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking issue</title><link>https://devzone.nordicsemi.com/thread/484935?ContentTypeID=1</link><pubDate>Mon, 20 May 2024 15:39:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f464aa1-8fad-489b-afa9-0a51d3cacbcb</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;I would suggest contacting &lt;a href="https://www.segger.com/support/technical-support/"&gt;SEGGER—Technical Support&lt;/a&gt;&amp;nbsp;for help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking issue</title><link>https://devzone.nordicsemi.com/thread/484883?ContentTypeID=1</link><pubDate>Sun, 19 May 2024 13:39:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fc61f2d-3fac-43c3-962d-a3b5f4f4b5e1</guid><dc:creator>somprakashrao</dc:creator><description>&lt;p&gt;Tried with cleaning the Output directory. No luck on this too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking issue</title><link>https://devzone.nordicsemi.com/thread/482135?ContentTypeID=1</link><pubDate>Mon, 06 May 2024 21:29:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:711c3612-f40a-489a-99f3-bd134fbc4872</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Try to clean and rebuild the project or delete the output folder.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking issue</title><link>https://devzone.nordicsemi.com/thread/481901?ContentTypeID=1</link><pubDate>Mon, 06 May 2024 03:07:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7befd83-eae4-4cdf-a92b-9ad6e974a11f</guid><dc:creator>somprakashrao</dc:creator><description>&lt;p&gt;Its already defined in .c&lt;/p&gt;
&lt;p&gt;Tried declaring within .h file. and the same header file was included to the .c file too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking issue</title><link>https://devzone.nordicsemi.com/thread/481329?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 16:11:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1acd8ef4-d47f-431f-9834-97696afdcdb5</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Do you define in .c or .h file? If in the&amp;nbsp;&lt;span&gt;header file, please make sure the path is correct. See&amp;nbsp;&lt;a title="Including header files" href="https://infocenter.nordicsemi.com/topic/ug_gsg_ses/UG/gsg/add_headers_ses.html?cp=1_0_1_6_5_1"&gt;Including header files&lt;/a&gt;&amp;nbsp;doc.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking issue</title><link>https://devzone.nordicsemi.com/thread/481327?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 15:58:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b8e3fba-3f4c-41c9-85e6-fe6d8ed86253</guid><dc:creator>somprakashrao</dc:creator><description>&lt;p&gt;I have checked for those type of variables. none found&lt;/p&gt;
&lt;p&gt;One function from the source file was declared in the header. Able to jump from the source file to its declaration .&lt;/p&gt;
&lt;p&gt;But from the&amp;nbsp;header file i was not able to jump to this functions definition.&lt;/p&gt;
&lt;p&gt;and getting this error&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1714492695347v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking issue</title><link>https://devzone.nordicsemi.com/thread/481324?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 15:38:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:198111c8-8de5-4f04-b0ed-83fdad6028b9</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Worth checking for typos: Should the&amp;nbsp;&lt;span&gt;`&lt;em&gt;&amp;lt;already_defined_variable&amp;gt;&lt;/em&gt;&amp;#39; be in a .h file instead of a .c file it will create multiple definitions and issue this warning. Sometimes this is unintended:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;.c:&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;myVariable = 0;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;.h&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;myVariable = 0; &lt;/em&gt;&amp;lt;&amp;lt;== generates multiple definitions if this .h file included in 2 or more .c files&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt; &lt;/em&gt;fix by changing the line in the .h to&lt;/p&gt;
&lt;p&gt;&lt;em&gt;extern&amp;nbsp;&lt;/em&gt;&lt;em&gt;myVariable;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;.&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking issue</title><link>https://devzone.nordicsemi.com/thread/481321?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 15:25:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47eef4f2-3727-4667-9c5c-4791d34f939a</guid><dc:creator>somprakashrao</dc:creator><description>&lt;p&gt;Using&amp;nbsp;blinky_FreeRTOS example.&lt;/p&gt;
&lt;p&gt;Setup was as per the instructions in &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_gsg_ses%2FUG%2Fgsg%2Fadd_content_ses.html&amp;amp;cp=1_0_1_6_5"&gt;Adding files&lt;/a&gt;&amp;nbsp;doc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking issue</title><link>https://devzone.nordicsemi.com/thread/481295?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 13:06:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a5e4c3d-599f-4a39-8b46-2bfbcba7efa4</guid><dc:creator>Amanda Hsieh</dc:creator><description>[quote user=""]I picked up an RTOS example and started adding the source files and header files to the project[/quote]
&lt;p&gt;Which example are you using? Did you follow the instructions of the&amp;nbsp;&lt;a title="Adding files" href="https://infocenter.nordicsemi.com/topic/ug_gsg_ses/UG/gsg/add_content_ses.html?cp=1_0_1_6_5"&gt;Adding files&lt;/a&gt;&amp;nbsp;doc?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking issue</title><link>https://devzone.nordicsemi.com/thread/481194?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 05:22:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ef1232c-4d71-4d19-9e1c-fae4dd4e8e36</guid><dc:creator>somprakashrao</dc:creator><description>[quote userid="77782" url="~/f/nordic-q-a/110436/linking-issue/481170"]-Amanda H.[/quote]
&lt;p&gt;Tried with 5.42a SES as well.&lt;/p&gt;
&lt;p&gt;Getting the same linking errors&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking issue</title><link>https://devzone.nordicsemi.com/thread/481170?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2024 18:02:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82f7587f-d85f-4299-b903-60d30094639f</guid><dc:creator>Amanda Hsieh</dc:creator><description>[quote user=""]So I was using SES v5.70a[/quote]
&lt;p&gt;Please use SES v5.42a as &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/index.html"&gt;the release note&lt;/a&gt;:&lt;/p&gt;
&lt;pre&gt;The following toolchains/devices have been used for testing and verification:
 
 - ARM: MDK-ARM version 5.25   
 - GCC: GCC ARM Embedded 9.2020-q2.major
 - IAR: IAR Workbench 7.80.4
 - SES: SES 5.42a&lt;/pre&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking issue</title><link>https://devzone.nordicsemi.com/thread/480968?ContentTypeID=1</link><pubDate>Sun, 28 Apr 2024 15:46:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b92c0c38-2a6b-4025-8093-0ce064c950c7</guid><dc:creator>somprakashrao</dc:creator><description>&lt;p&gt;Im using nRF SDK 17.1.0.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking issue</title><link>https://devzone.nordicsemi.com/thread/480004?ContentTypeID=1</link><pubDate>Mon, 22 Apr 2024 13:11:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8223412b-1784-4038-83f1-511b9b710e9b</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What NCS version are you using?&lt;/p&gt;
&lt;p&gt;Please take a look at&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/device_guides/nrf91.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/device_guides/nrf91.html&lt;/a&gt;&amp;nbsp;for nRF9160.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>