<?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 Development ToolsのトピックRe: How to build mixed C and C++ project in CodeWarror</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-build-mixed-C-and-C-project-in-CodeWarror/m-p/1033069#M8211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello DaveS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In CodeWarrior IDE, only one Compiler command can be specified from Project-&amp;gt;Properties-&amp;gt;C/C++ Build-&amp;gt;Settings-&amp;gt;PowerPC* C Compiler for each project.&lt;/P&gt;&lt;P&gt;You could create a C compiler project to build your C program as a&amp;nbsp;library and import this lib in the C++ compiler project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yiping&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jan 2020 09:00:41 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2020-01-07T09:00:41Z</dc:date>
    <item>
      <title>How to build mixed C and C++ project in CodeWarror</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-build-mixed-C-and-C-project-in-CodeWarror/m-p/1033066#M8208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I have an ongoing GCC LINUX project with dozens of source files all written in C.&lt;/P&gt;&lt;P&gt;The project builds with CodeWarrior for our QorIQ processor board.&lt;/P&gt;&lt;P&gt;I would like to introduce some isolated C++ code to the project, but minimize the changes required to the existing source code.&lt;/P&gt;&lt;P&gt;I know how to write mixed C and C++ code, using extern "C", etc, so that's not a problem.&lt;/P&gt;&lt;P&gt;My problem is getting CodeWarrior to compile the project correctly.&lt;/P&gt;&lt;P&gt;To simplify, I created a brand new C++ project, which gave me main.cpp.&lt;/P&gt;&lt;P&gt;CodeWarrior chooses g++ to build main.cpp.&lt;/P&gt;&lt;P&gt;I then added one C source file, called funcs.c.&lt;/P&gt;&lt;P&gt;I was hoping that CodeWarrior would choose gcc for this new file, but it chose g++ instead.&lt;/P&gt;&lt;P&gt;I tried adding the C Compiler&amp;nbsp;via the tool chain editor (ignoring the "tool conflict" error), but this didn't help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how I can coerce CodeWarrior to use the C compiler for files with .c extension and continue to use the C++ compiler for files with .cpp extension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tia,&lt;/P&gt;&lt;P&gt;DaveS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2020 17:42:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-build-mixed-C-and-C-project-in-CodeWarror/m-p/1033066#M8208</guid>
      <dc:creator>dsclarsky</dc:creator>
      <dc:date>2020-01-03T17:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to build mixed C and C++ project in CodeWarror</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-build-mixed-C-and-C-project-in-CodeWarror/m-p/1033067#M8209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="353722" data-username="dsclarsky@netquestcorp.com" href="https://community.nxp.com/people/dsclarsky@netquestcorp.com"&gt;David Sclarsky&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which version CodeWarrior do you use? Which processor do you use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yiping&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2020 06:30:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-build-mixed-C-and-C-project-in-CodeWarror/m-p/1033067#M8209</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2020-01-06T06:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to build mixed C and C++ project in CodeWarror</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-build-mixed-C-and-C-project-in-CodeWarror/m-p/1033068#M8210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yiping, thanks for the reply!&lt;/P&gt;&lt;P&gt;We're using "CodeWarrior for Power Architecture Version 10.5.2", building for the NXP QorIQ T2080 processor.&lt;/P&gt;&lt;P&gt;I tried 'check for updates' but that didn't find anything.&lt;/P&gt;&lt;P&gt;Any advice would be greatly appreciated!&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;DaveS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2020 14:45:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-build-mixed-C-and-C-project-in-CodeWarror/m-p/1033068#M8210</guid>
      <dc:creator>dsclarsky</dc:creator>
      <dc:date>2020-01-06T14:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to build mixed C and C++ project in CodeWarror</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-build-mixed-C-and-C-project-in-CodeWarror/m-p/1033069#M8211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello DaveS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In CodeWarrior IDE, only one Compiler command can be specified from Project-&amp;gt;Properties-&amp;gt;C/C++ Build-&amp;gt;Settings-&amp;gt;PowerPC* C Compiler for each project.&lt;/P&gt;&lt;P&gt;You could create a C compiler project to build your C program as a&amp;nbsp;library and import this lib in the C++ compiler project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yiping&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2020 09:00:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-build-mixed-C-and-C-project-in-CodeWarror/m-p/1033069#M8211</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2020-01-07T09:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to build mixed C and C++ project in CodeWarror</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-build-mixed-C-and-C-project-in-CodeWarror/m-p/1033070#M8212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wow, that seems like a serious limitation for a build tool.&amp;nbsp; By definition, C++ was designed to inter-operate well with C.&lt;/P&gt;&lt;P&gt;I am working on a project with many developers, most have never used C++.&lt;/P&gt;&lt;P&gt;I finally convinced them to let me introduce some C++ into the project by telling them we could keep all existing code (except we might have to reorganize main()) and just add new .cpp files where appropriate.&lt;/P&gt;&lt;P&gt;I've been using C++ for about 30 years and have always been able to mix C and C++ easily in the same tool.&lt;/P&gt;&lt;P&gt;It's going to be difficult to ask them to put all of their existing code into a library just so I can add a module or two where I really need to use STL containers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there really no other option?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2020 14:27:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-build-mixed-C-and-C-project-in-CodeWarror/m-p/1033070#M8212</guid>
      <dc:creator>dsclarsky</dc:creator>
      <dc:date>2020-01-07T14:27:26Z</dc:date>
    </item>
  </channel>
</rss>

