<?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: PPC: problems with C++ templates in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/PPC-problems-with-C-templates/m-p/203360#M5597</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, unless there is a compelling reason NOT to, I would update to a later (higher version) of CodeWarrior. Second, it seems like you need the big guns for this issue, so I would file an on-line service request. Click &lt;A href="https://www.freescale.com/webapp/servicerequest.create_SR.framework" rel="nofollow" target="_self"&gt;here&lt;/A&gt; to go to the service request page. For Topic choose Software Product Support, and for Category choose CodeWarrior. Be prepared to give them a section of code that reproduces the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 May 2011 19:06:17 GMT</pubDate>
    <dc:creator>J2MEJediMaster</dc:creator>
    <dc:date>2011-05-05T19:06:17Z</dc:date>
    <item>
      <title>PPC: problems with C++ templates</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/PPC-problems-with-C-templates/m-p/203359#M5596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to cross-compile an application that uses std::tr1::tuple. I have&amp;nbsp;this declaration in std::tr1 namespace:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;&lt;STRONG&gt;template &amp;lt;int k, typename T0&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;class tuple&amp;lt;T0&amp;gt; {...}&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;STRONG&gt;template &amp;lt;int k, typename T0&amp;gt; MyType&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;get(const tuple&amp;lt;T0&amp;gt;&amp;amp; t) {...}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I tested with this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;tuple&amp;lt;int&amp;gt; t;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;int N = 1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;r = get&amp;lt;N-1&amp;gt;(t);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got an error from mwcceppc.exe&amp;nbsp;like what it cannot find get because it is looking for this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;get&amp;lt;0, tuple&amp;lt;int, std::tr1::nat, std::tr1::nat, ...&amp;gt;&amp;gt;(const tuple&amp;lt;int, std::tr1::nat, std::tr1::nat, ...&amp;gt;&amp;amp;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I was&amp;nbsp;expecting this instead:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;get&amp;lt;0, tuple&amp;lt;int&amp;gt;&amp;gt;(const tuple&amp;lt;int&amp;gt;&amp;amp;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering where is this padding &lt;STRONG&gt;std::tr1::nat&lt;/STRONG&gt; come from? Could I tell the compiler to not insert the padding?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This case is compiled well with MSDEV-2008. mwcceppc.exe -version gave&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Freescale C/C++ Compiler for Embedded PowerPC.&lt;BR /&gt;Copyright (c) 2007, Freescale Semiconductor, Inc.&lt;BR /&gt;All rights reserved.&lt;BR /&gt;Version 4.3 build 145&lt;BR /&gt;Runtime Built: Oct&amp;nbsp; 9 2008 05:39:23&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Robert Le Van Mao&lt;/P&gt;&lt;P&gt;Ubisoft - Montreal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2011 04:09:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/PPC-problems-with-C-templates/m-p/203359#M5596</guid>
      <dc:creator>bob_ubi</dc:creator>
      <dc:date>2011-05-05T04:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: PPC: problems with C++ templates</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/PPC-problems-with-C-templates/m-p/203360#M5597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, unless there is a compelling reason NOT to, I would update to a later (higher version) of CodeWarrior. Second, it seems like you need the big guns for this issue, so I would file an on-line service request. Click &lt;A href="https://www.freescale.com/webapp/servicerequest.create_SR.framework" rel="nofollow" target="_self"&gt;here&lt;/A&gt; to go to the service request page. For Topic choose Software Product Support, and for Category choose CodeWarrior. Be prepared to give them a section of code that reproduces the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2011 19:06:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/PPC-problems-with-C-templates/m-p/203360#M5597</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2011-05-05T19:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: PPC: problems with C++ templates</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/PPC-problems-with-C-templates/m-p/203361#M5598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply. Because of XYZ- third-party issues, the version of the compiler is imposed on me &lt;IMG alt=":smileysad:" class="emoticon emoticon-smileysad" id="smileysad" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-sad.gif" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;But&amp;nbsp;I am eager&amp;nbsp;to hear solutions from you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Robert&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2011 22:13:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/PPC-problems-with-C-templates/m-p/203361#M5598</guid>
      <dc:creator>bob_ubi</dc:creator>
      <dc:date>2011-05-05T22:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: PPC: problems with C++ templates</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/PPC-problems-with-C-templates/m-p/203362#M5599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At this point, file a service request, unless someone knowledgeable in C++ in the forums posts a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 19:58:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/PPC-problems-with-C-templates/m-p/203362#M5599</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2011-05-06T19:58:14Z</dc:date>
    </item>
  </channel>
</rss>

