<?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: undefined reference to 'mktime'</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/undefined-reference-to-mktime/m-p/285914#M464</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello IAN:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I know those time functions are not implemented because they would be dependent on the hardware. You would have to implement those functions by your own based on the device, using the RTC. The libraries contain that option because it is ANSI standard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Feb 2014 17:43:39 GMT</pubDate>
    <dc:creator>Jorge_Gonzalez</dc:creator>
    <dc:date>2014-02-13T17:43:39Z</dc:date>
    <item>
      <title>undefined reference to 'mktime'</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/undefined-reference-to-mktime/m-p/285913#M463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am unable to enable the mktime, localtime etc. functions. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I have done:&lt;/P&gt;&lt;P&gt;1) I have opened the library project here: &lt;STRONG&gt;C:\Freescale\CW MCU v10.5\MCU\ARM_GCC_Support\ewl&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2) Edited &lt;STRONG&gt;ansi-parms.h:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;/* time and clock support */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #ifndef _EWL_OS_TIME_SUPPORT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;&lt;STRONG&gt;#define _EWL_OS_TIME_SUPPORT 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/EM&gt;&amp;lt;---- this is the only thing I changed in the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #endif&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #ifndef _EWL_CLOCK_T_AVAILABLE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define _EWL_CLOCK_T_AVAILABLE 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #endif&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #ifndef _EWL_TIME_T_AVAILABLE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define _EWL_TIME_T_AVAILABLE 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #endif&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #ifndef _EWL_TM_STRUCT_AVAILABLE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define _EWL_TM_STRUCT_AVAILABLE 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #endif&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #ifndef _EWL_TIME_T_IS_LOCALTIME&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define _EWL_TIME_T_IS_LOCALTIME 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #endif&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) clean all&lt;/P&gt;&lt;P&gt;4) rebuild all.&amp;nbsp; Everything looks fine, no errors.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5) Then import my project again and clean/build.&amp;nbsp; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Same error. undefined reference to 'mktime' or whatever other time function I call.&lt;/P&gt;&lt;P&gt;The file date/time match the build time but the size of the libraries don't change.&amp;nbsp; I'm not sure how to rebuild the libraries to have the time (or other non-default) features enabled.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have the same experience and a solution? Or just a solution? Direction?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 00:04:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/undefined-reference-to-mktime/m-p/285913#M463</guid>
      <dc:creator>iscan</dc:creator>
      <dc:date>2014-02-10T00:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: undefined reference to 'mktime'</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/undefined-reference-to-mktime/m-p/285914#M464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello IAN:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I know those time functions are not implemented because they would be dependent on the hardware. You would have to implement those functions by your own based on the device, using the RTC. The libraries contain that option because it is ANSI standard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 17:43:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/undefined-reference-to-mktime/m-p/285914#M464</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2014-02-13T17:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: undefined reference to 'mktime'</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/undefined-reference-to-mktime/m-p/285915#M465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 'cobbled together' a set of RTC functions for K that work(!).&amp;nbsp; It is 'seconds since 1/1/1970' based with appropriate 'calender conversions'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 21:02:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/undefined-reference-to-mktime/m-p/285915#M465</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2014-02-13T21:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: undefined reference to 'mktime'</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/undefined-reference-to-mktime/m-p/285916#M466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Earl!&amp;nbsp; I appreciate your work on this. I'm setting up and testing it now.&amp;nbsp; Will let you know how it works out.&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Feb 2014 11:34:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/undefined-reference-to-mktime/m-p/285916#M466</guid>
      <dc:creator>iscan</dc:creator>
      <dc:date>2014-02-15T11:34:13Z</dc:date>
    </item>
  </channel>
</rss>

