<?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: LPC43xx MCU C++ Linker: Undefined reference to ... in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC43xx-MCU-C-Linker-Undefined-reference-to/m-p/589085#M28455</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the thread title, it sounds like you are creating&amp;nbsp;a C++ project, but in the body of your post&amp;nbsp;your GPIO function appears to be defined in a .c file. I therefore suspect you have a C vs C++ linkage issue&amp;nbsp;and will need to use &lt;STRONG&gt;&lt;EM&gt;extern "C" { .... }&lt;/EM&gt; &lt;/STRONG&gt;&amp;nbsp;appropriately.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For more details, please see you favorite C++ text book, alternatively an internet search will bring up lots of useful links - for example:&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FCompatibility_of_C_and_C%252B%252B%23Linking_C_and_C.2B.2B_code" rel="nofollow" target="_blank"&gt;http://en.wikipedia.org/wiki/Compatibility_of_C_and_C%2B%2B#Linking_C_and_C.2B.2B_code&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;LPCXpresso Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Sep 2016 07:15:46 GMT</pubDate>
    <dc:creator>lpcxpresso_supp</dc:creator>
    <dc:date>2016-09-06T07:15:46Z</dc:date>
    <item>
      <title>LPC43xx MCU C++ Linker: Undefined reference to ...</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC43xx-MCU-C-Linker-Undefined-reference-to/m-p/589084#M28454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get my first project compiled. &lt;STRONG&gt;main()&lt;/STRONG&gt; function with a call to a simple, non fancy GPIO function, &lt;STRONG&gt;void GPIO_function( void )&lt;/STRONG&gt; in file &lt;STRONG&gt;GPIO_test.c&lt;/STRONG&gt;. Header file included as &lt;STRONG&gt;#include "GPIO_test.h"&lt;/STRONG&gt;. Include path added via the project properties "Paths and Symbols". I copied the file GPIO_test.c in the /src folder of the project. I can insert the function with code completion in the source code. BUT I get an &lt;EM&gt;&lt;STRONG&gt;undefined reference to `GPIO_function()'&lt;/STRONG&gt;&lt;/EM&gt; error from the linker. Any hints are highly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks and greetings&lt;/P&gt;&lt;P&gt;XpressoGuy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 23:08:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC43xx-MCU-C-Linker-Undefined-reference-to/m-p/589084#M28454</guid>
      <dc:creator>xpressoguy</dc:creator>
      <dc:date>2016-09-05T23:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: LPC43xx MCU C++ Linker: Undefined reference to ...</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC43xx-MCU-C-Linker-Undefined-reference-to/m-p/589085#M28455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the thread title, it sounds like you are creating&amp;nbsp;a C++ project, but in the body of your post&amp;nbsp;your GPIO function appears to be defined in a .c file. I therefore suspect you have a C vs C++ linkage issue&amp;nbsp;and will need to use &lt;STRONG&gt;&lt;EM&gt;extern "C" { .... }&lt;/EM&gt; &lt;/STRONG&gt;&amp;nbsp;appropriately.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For more details, please see you favorite C++ text book, alternatively an internet search will bring up lots of useful links - for example:&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FCompatibility_of_C_and_C%252B%252B%23Linking_C_and_C.2B.2B_code" rel="nofollow" target="_blank"&gt;http://en.wikipedia.org/wiki/Compatibility_of_C_and_C%2B%2B#Linking_C_and_C.2B.2B_code&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;LPCXpresso Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2016 07:15:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC43xx-MCU-C-Linker-Undefined-reference-to/m-p/589085#M28455</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2016-09-06T07:15:46Z</dc:date>
    </item>
  </channel>
</rss>

