<?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>CodeWarrior for MCUのトピックRe: Re: C++ bug?  ewl_c++ with int_FP printf/scanf options</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-bug-ewl-c-with-int-FP-printf-scanf-options/m-p/235841#M9257</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jennie, sorry for the delay.&amp;nbsp; Finally stripped the app code and made a test app showing the problem.&amp;nbsp; Still occurs with CW5.&amp;nbsp; Attached.&lt;/P&gt;&lt;P&gt;If you change the properties/settings/library options to &lt;STRONG&gt;int&lt;/STRONG&gt; for printf and scanf, it compiles, change to &lt;STRONG&gt;int_FP&lt;/STRONG&gt; and you get errors.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Jan 2014 18:34:49 GMT</pubDate>
    <dc:creator>bowerymarc</dc:creator>
    <dc:date>2014-01-03T18:34:49Z</dc:date>
    <item>
      <title>C++ bug?  ewl_c++ with int_FP printf/scanf options</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-bug-ewl-c-with-int-FP-printf-scanf-options/m-p/235839#M9255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here's a good one.&amp;nbsp; C++ program compiles just fine using the ewl_c++ library, as long as the 'int' option for printf and scanf are selected.&amp;nbsp; If I select 'int_FP' then I get the errors:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;**** Build of configuration FLASH for project ioti-k20 ****&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; font-size: 10px; font-family: 'Courier New';"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;C:\Freescale\CW MCU v10.4\gnu\bin\mingw32-make all &lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;'Building target: ioti-k20.elf'&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;'Executing target #90 ioti-k20.elf'&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;'Invoking: ARM Ltd Windows GCC C++ Linker'&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;"C:/Freescale/CW MCU v10.4/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-g++"&amp;nbsp;&amp;nbsp;&amp;nbsp; @"ioti-k20.args" -o"ioti-k20.elf"&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;Using built-in specs.&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;Reading specs from c:/freescale/cw mcu v10.4/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/lib/ewl_c++.specs&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;rename spec subtarget_cpp_spec to old_subtarget_cpp_spec&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;COLLECT_GCC=C:/Freescale/CW MCU v10.4/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-g++&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;COLLECT_LTO_WRAPPER=c:/freescale/cw mcu v10.4/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/arm-none-eabi/4.7.3/lto-wrapper.exe&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;Target: arm-none-eabi&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;Configured with: /home/rat031/arm_gcc_2012q4_47_r785/gcc-arm-none-eabi-4_7-2012q4-20121208/src/gcc/configure --build=i686-linux-gnu --host=i686-pc-mingw32 --target=arm-none-eabi --prefix=/home/rat031/arm_gcc_2012q4_47_r785/gcc-arm-none-eabi-4_7-2012q4-20121208/install-mingw --libexecdir=/home/rat031/arm_gcc_2012q4_47_r785/gcc-arm-none-eabi-4_7-2012q4-20121208/install-mingw/lib --infodir=/home/rat031/arm_gcc_2012q4_47_r785/gcc-arm-none-eabi-4_7-2012q4-20121208/install-mingw/share/doc/gcc-arm-none-eabi/info --mandir=/home/rat031/arm_gcc_2012q4_47_r785/gcc-arm-none-eabi-4_7-2012q4-20121208/install-mingw/share/doc/gcc-arm-none-eabi/man --htmldir=/home/rat031/arm_gcc_2012q4_47_r785/gcc-arm-none-eabi-4_7-2012q4-20121208/install-mingw/share/doc/gcc-arm-none-eabi/html --pdfdir=/home/rat031/arm_gcc_2012q4_47_r785/gcc-arm-none-eabi-4_7-2012q4-20121208/install-mingw/share/doc/gcc-arm-none-eabi/pdf --enable-languages=c,c++ --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-lto --disable-nls --disable-shared --disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-headers=yes --with-newlib --with-python-dir=share/gcc-arm-none-eabi --with-sysroot=/home/rat031/arm_gcc_2012q4_47_r785/gcc-arm-none-eabi-4_7-2012q4-20121208/install-mingw/arm-none-eabi --with-libiconv-prefix=/home/rat031/arm_gcc_2012q4_47_r785/gcc-arm-none-eabi-4_7-2012q4-20121208/build-mingw/host-libs/usr --with-gmp=/home/rat031/arm_gcc_2012q4_47_r785/gcc-arm-none-eabi-4_7-2012q4-20121208/build-mingw/host-libs/usr --with-mpfr=/home/rat031/arm_gcc_2012q4_47_r785/gcc-arm-none-eabi-4_7-2012q4-20121208/build-mingw/host-libs/usr --with-mpc=/home/rat031/arm_gcc_2012q4_47_r785/gcc-arm-none-eabi-4_7-2012q4-20121208/build-mingw/host-libs/usr --with-ppl=/home/rat031/arm_gcc_2012q4_47_r785/gcc-arm-none-eabi-4_7-2012q4-20121208/build-mingw/host-libs/usr --with-cloog=/home/rat031/arm_gcc_2012q4_47_r785/gcc-arm-none-eabi-4_7-2012q4-20121208/build-mingw/host-libs/usr --with-libelf=/home/rat031/arm_gcc_2012q4_47_r785/gcc-arm-none-eabi-4_7-2012q4-20121208/build-mingw/host-libs/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-pkgversion='GNU Tools for ARM Embedded Processors' --with-multilib-list=armv6-m,armv7-m,armv7e-m,armv7-r&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;Thread model: single&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;gcc version 4.7.3 20121207 (FSL release r785) [ARM/embedded-4_7-branch revision 194305] (GNU Tools for ARM Embedded Processors) &lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;COMPILER_PATH=c:/freescale/cw mcu v10.4/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/arm-none-eabi/4.7.3/;c:/freescale/cw mcu v10.4/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/;c:/freescale/cw mcu v10.4/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/bin/&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;LIBRARY_PATH=c:/freescale/cw mcu v10.4/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/arm-none-eabi/4.7.3/armv7e-m/fpu/;c:/freescale/cw mcu v10.4/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/lib/armv7e-m/fpu/;c:/freescale/cw mcu v10.4/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../arm-none-eabi/lib/armv7e-m/fpu/;c:/freescale/cw mcu v10.4/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/arm-none-eabi/4.7.3/;c:/freescale/cw mcu v10.4/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/;c:/freescale/cw mcu v10.4/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/lib/;c:/freescale/cw mcu v10.4/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../arm-none-eabi/lib/&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;COLLECT_GCC_OPTIONS='-mcpu=cortex-m4' '-mthumb' '-mfloat-abi=hard' '-mfpu=fpv4-sp-d16' '-g3' '-gdwarf-2' '-gstrict-dwarf' '-T' 'Y:/BEA/ioti/software/SVN/trunk/firmware/ioti-k20/Project_Settings/Linker_Files/ProcessorExpert.ld' '-nostartfiles' '-nodefaultlibs' '-nostdlib' '-LC:/Freescale/CW MCU v10.4/MCU/ARM_GCC_Support/ewl/lib/armv7e-m/fpu' '-LC:/Freescale/CW MCU v10.4/MCU/ARM_GCC_Support/ewl/lib/armv7e-m' '-v' '-o' 'ioti-k20.elf'&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt; c:/freescale/cw mcu v10.4/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/arm-none-eabi/4.7.3/collect2.exe --sysroot=c:\freescale\cw mcu v10.4\cross_tools\arm-none-eabi-gcc-4_7_3\bin\../arm-none-eabi -X -o ioti-k20.elf -LC:/Freescale/CW MCU v10.4/MCU/ARM_GCC_Support/ewl/lib/armv7e-m/fpu -LC:/Freescale/CW MCU v10.4/MCU/ARM_GCC_Support/ewl/lib/armv7e-m -Lc:/freescale/cw mcu v10.4/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/arm-none-eabi/4.7.3/armv7e-m/fpu -Lc:/freescale/cw mcu v10.4/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/lib/armv7e-m/fpu -Lc:/freescale/cw mcu v10.4/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../arm-none-eabi/lib/armv7e-m/fpu -Lc:/freescale/cw mcu v10.4/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/arm-none-eabi/4.7.3 -Lc:/freescale/cw mcu v10.4/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc -Lc:/freescale/cw mcu v10.4/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/lib -Lc:/freescale/cw mcu v10.4/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../arm-none-eabi/lib @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\cc8tJucd -T Y:/BEA/ioti/software/SVN/trunk/firmware/ioti-k20/Project_Settings/Linker_Files/ProcessorExpert.ld&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;C:/Freescale/CW MCU v10.4/MCU/ARM_GCC_Support/ewl/lib/armv7e-m/fpu\libc.a(printformat_fp.o): In function `__pformatterFP':&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;ARM_GCC_Support/ewl/EWL_C/../EWL_C/src/stdio/__printformat.c:1641: undefined reference to `__num2dec'&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;ARM_GCC_Support/ewl/EWL_C/../EWL_C/src/stdio/__printformat.c:1718: undefined reference to `__round_decimal'&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;ARM_GCC_Support/ewl/EWL_C/../EWL_C/src/stdio/__printformat.c:1756: undefined reference to `__round_decimal'&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;ARM_GCC_Support/ewl/EWL_C/../EWL_C/src/stdio/__printformat.c:1819: undefined reference to `__round_decimal'&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;C:/Freescale/CW MCU v10.4/MCU/ARM_GCC_Support/ewl/lib/armv7e-m/fpu\libc.a(scanformat_fp.o): In function `__sformatter_FP':&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;ARM_GCC_Support/ewl/EWL_C/../EWL_C/src/stdio/__scanformat.c:1506: undefined reference to `__float_nan'&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;C:/Freescale/CW MCU v10.4/MCU/ARM_GCC_Support/ewl/lib/armv7e-m/fpu\libc.a(__strtold.o): In function `__strtold':&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;ARM_GCC_Support/ewl/EWL_C/src/stdio/__strtold.c:762: undefined reference to `__dec2num'&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;ARM_GCC_Support/ewl/EWL_C/src/stdio/__strtold.c:943: undefined reference to `__double_huge'&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;mingw32-make: *** [ioti-k20.elf] Error 1&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the 'enable automatic library configurations' checked.&lt;/P&gt;&lt;P&gt;It looks like it's missing some include files along the chain or a library...&lt;/P&gt;&lt;P&gt;Any solutions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2013 01:41:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-bug-ewl-c-with-int-FP-printf-scanf-options/m-p/235839#M9255</guid>
      <dc:creator>bowerymarc</dc:creator>
      <dc:date>2013-08-02T01:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: C++ bug?  ewl_c++ with int_FP printf/scanf options</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-bug-ewl-c-with-int-FP-printf-scanf-options/m-p/235840#M9256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you please send us the demo code that can showcase the problem? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 06:39:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-bug-ewl-c-with-int-FP-printf-scanf-options/m-p/235840#M9256</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2013-09-05T06:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re: C++ bug?  ewl_c++ with int_FP printf/scanf options</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-bug-ewl-c-with-int-FP-printf-scanf-options/m-p/235841#M9257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jennie, sorry for the delay.&amp;nbsp; Finally stripped the app code and made a test app showing the problem.&amp;nbsp; Still occurs with CW5.&amp;nbsp; Attached.&lt;/P&gt;&lt;P&gt;If you change the properties/settings/library options to &lt;STRONG&gt;int&lt;/STRONG&gt; for printf and scanf, it compiles, change to &lt;STRONG&gt;int_FP&lt;/STRONG&gt; and you get errors.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 18:34:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-bug-ewl-c-with-int-FP-printf-scanf-options/m-p/235841#M9257</guid>
      <dc:creator>bowerymarc</dc:creator>
      <dc:date>2014-01-03T18:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Re: C++ bug?  ewl_c++ with int_FP printf/scanf options</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-bug-ewl-c-with-int-FP-printf-scanf-options/m-p/235842#M9258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just open your project with CW10.5.&lt;/P&gt;&lt;P&gt;it appears some compoents ( DSC_LED ) in your project doesn't support&amp;nbsp; with CW for kinetis.&lt;/P&gt;&lt;P&gt;see attached. can you please check the same&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="untitled.JPG.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41790i10C94B504FF67913/image-size/large?v=v2&amp;amp;px=999" role="button" title="untitled.JPG.jpg" alt="untitled.JPG.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 07:19:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-bug-ewl-c-with-int-FP-printf-scanf-options/m-p/235842#M9258</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2014-01-06T07:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Re: C++ bug?  ewl_c++ with int_FP printf/scanf options</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-bug-ewl-c-with-int-FP-printf-scanf-options/m-p/235843#M9259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jenny,&lt;/P&gt;&lt;P&gt;I guess you don't have Erich Steyger's 'mcuoneclipse' PE library installed.&amp;nbsp; Anyhow it's not important, you can just delete any of the PE components that aren't working, they aren't used for this test anyhow.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 18:06:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/C-bug-ewl-c-with-int-FP-printf-scanf-options/m-p/235843#M9259</guid>
      <dc:creator>bowerymarc</dc:creator>
      <dc:date>2014-01-07T18:06:28Z</dc:date>
    </item>
  </channel>
</rss>

