<?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 &amp;quot;Build selected file&amp;quot; question in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/quot-Build-selected-file-quot-question/m-p/542032#M7652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by fancypants on Sun Oct 19 23:42:45 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This isn't a critical issue but I bring it up for visibility in case it can be fixed, or to get an answer "this is just the way it is".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Issue: when building a selected file (i.e. right click .c file in Project Explorer and select Build Selected File(s)) it isn't generating a listing file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Details: my project is configured as an "LPCXpresso C Project" which I think means that it defaults to a managed makefile. The project's properties for "C/C++ Build" use "Builder type: External builder" with the default build command "make -r" and the other selections checked. Additionally, "C/C++ Build -&amp;gt; Settings -&amp;gt; Miscellaneous" has "Other flags: -Wa,-a,-ad="$*.lst"". When doing a "Build Project" I see in the console that the "external builder" is used and make properly generates the .lst files. However, when selecting "Build Selected File(s)" on a particular file, I see "Info: Internal Builder is used for build" in the console, and the "$*.lst" gets expanded to ".lst". After a lot of Google searches and trying to understand internal vs external builds (don't really have a good grasp on it), it seems there is a CDT bug that causes the internal builder not to expand some macros. It got me thinking though, shouldn't the external builder be used? Shouldn't selecting "Build Selected File(s)" just pass those files to make?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Like I said, I'm mentioning it in case this is a straightforward fix. I'm able to work around it doing a disassembly of the object file with source interspersed. However, the more I get to know Eclipse (I'm no expert but I do like it) the more complicated it gets, so I can understand if this is "just the way it works".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using LPCXpresso v7.4.0 on OSX 10.9 for reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:20:01 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:20:01Z</dc:date>
    <item>
      <title>"Build selected file" question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/quot-Build-selected-file-quot-question/m-p/542032#M7652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by fancypants on Sun Oct 19 23:42:45 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This isn't a critical issue but I bring it up for visibility in case it can be fixed, or to get an answer "this is just the way it is".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Issue: when building a selected file (i.e. right click .c file in Project Explorer and select Build Selected File(s)) it isn't generating a listing file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Details: my project is configured as an "LPCXpresso C Project" which I think means that it defaults to a managed makefile. The project's properties for "C/C++ Build" use "Builder type: External builder" with the default build command "make -r" and the other selections checked. Additionally, "C/C++ Build -&amp;gt; Settings -&amp;gt; Miscellaneous" has "Other flags: -Wa,-a,-ad="$*.lst"". When doing a "Build Project" I see in the console that the "external builder" is used and make properly generates the .lst files. However, when selecting "Build Selected File(s)" on a particular file, I see "Info: Internal Builder is used for build" in the console, and the "$*.lst" gets expanded to ".lst". After a lot of Google searches and trying to understand internal vs external builds (don't really have a good grasp on it), it seems there is a CDT bug that causes the internal builder not to expand some macros. It got me thinking though, shouldn't the external builder be used? Shouldn't selecting "Build Selected File(s)" just pass those files to make?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Like I said, I'm mentioning it in case this is a straightforward fix. I'm able to work around it doing a disassembly of the object file with source interspersed. However, the more I get to know Eclipse (I'm no expert but I do like it) the more complicated it gets, so I can understand if this is "just the way it works".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using LPCXpresso v7.4.0 on OSX 10.9 for reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:20:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/quot-Build-selected-file-quot-question/m-p/542032#M7652</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: "Build selected file" question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/quot-Build-selected-file-quot-question/m-p/542033#M7653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Mon Oct 20 01:21:00 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the Internal builder vs the External builder (make) will produce the same results. However, you have used a &lt;/SPAN&gt;&lt;STRONG&gt;make&lt;/STRONG&gt;&lt;SPAN&gt; macro ($*) and as the Internal builder is not make, it does not understand the macro...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;What you should do is use a Build Macro (see &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fbuild-macros" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/build-macros&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Specifically, change $*.lst to ${InputFileBaseName}.lst&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will then work regardless of which type of builder you use.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: Corrected the macro above&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:20:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/quot-Build-selected-file-quot-question/m-p/542033#M7653</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: "Build selected file" question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/quot-Build-selected-file-quot-question/m-p/542034#M7654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by fancypants on Mon Oct 20 10:52:17 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, that did the trick.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thought I had tried something like this previously but whatever I had done didn't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your answer makes it a little clearer - "internal" is CDT's internal interpretation of make, not CDT's interpretation of gcc. Got it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:20:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/quot-Build-selected-file-quot-question/m-p/542034#M7654</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:20:02Z</dc:date>
    </item>
  </channel>
</rss>

