<?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>Classic/Legacy CodeWarriorのトピックRe: Function not appearing</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Function-not-appearing/m-p/129819#M401</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi bazza,&lt;BR /&gt;&lt;BR /&gt;While this list is for CodeWarrior, it is also for Freescale devices. I'm sure there are much more appropriate forums dedicated to palm, but sorry I dont know Palm or their forums.&lt;BR /&gt;Anyway, I shortly asked Google for "Palm strToDouble" and some hits did show up. strToDouble is a library function used on Palm, please check the documentation of the libraries you are using.&lt;BR /&gt;Note that the function is strToDouble" not "StrToDouble" as in your initial mail (but I'm not 100% that he palm linker is case sensitive. I would hope so, but ANSI-C does not guarantee this).&lt;BR /&gt;Also name collisions tend to generate strange error messages, unfortunately you did not copy the ones you got, so its hard to say if they were actually a mystery or just what to expect for your error setup.&lt;BR /&gt;Anyway, the first thing to do when you get some error you really do not expect is to check the preprocessor output. Then look how your strToDouble code looks like and search in it for other declarations of strToDouble. Usually the name collision can be easily spotted this way (actually not sure for your case as you may have a link time name collision only).&lt;BR /&gt;&lt;BR /&gt;Also you found the cure: use another name :smileyhappy: (or in C++, use a namespace).&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Sep 2006 19:27:10 GMT</pubDate>
    <dc:creator>CompilerGuru</dc:creator>
    <dc:date>2006-09-11T19:27:10Z</dc:date>
    <item>
      <title>Function not appearing</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Function-not-appearing/m-p/129817#M399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-size: 3;"&gt;Hello,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-size: 3;"&gt;I am halfway through an app using Code Warrior for Palm and cannot get a new function to appear.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-size: 3;"&gt;I only have nine functions in the particular segment.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-size: 3;"&gt;The function is:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-size: 3;"&gt;static Boolean StrToDouble(Char* dist, double newdist);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 3;"&gt;I did have the function appearing at first but could not proceed due to a link error so I inserted the 'static'&amp;nbsp; and it worked. I was trying to alter the return value when all reference to the function disappeared and now the program will not compile while the function is there. If I comment it out it will compile. I am at a loss as to why a function cannot be active. I have defined it under processes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 3;"&gt;The color of the function indicates it is inactive and it does not appear in the drop down list. Also I get a stupid error claiming every line of the program is a syntax error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 3;"&gt;Regards, Bazza&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Sep 2006 14:51:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Function-not-appearing/m-p/129817#M399</guid>
      <dc:creator>bazza</dc:creator>
      <dc:date>2006-09-09T14:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Function not appearing</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Function-not-appearing/m-p/129818#M400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT color="#000000" size="3"&gt;The mystery gets bigger. If I make a new function with some other name it's OK. I have started doing this but not finished yet, so it's not as if I can't add functions to the project. There is just some devil of a gremlin somewhere in code warrior preventing me from using the title 'strToDouble'.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000000" size="3"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000000" size="3"&gt;If I comment out every trace of strToDouble function and enter a new function say with the title GetDouble then it compiles happily.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000000" size="3"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000000" size="3"&gt;This makes Code Warrior look pretty sick. The error messages are also pretty stupid and extremely unhelpful.&lt;/FONT&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Sep 2006 08:38:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Function-not-appearing/m-p/129818#M400</guid>
      <dc:creator>bazza</dc:creator>
      <dc:date>2006-09-10T08:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Function not appearing</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Function-not-appearing/m-p/129819#M401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi bazza,&lt;BR /&gt;&lt;BR /&gt;While this list is for CodeWarrior, it is also for Freescale devices. I'm sure there are much more appropriate forums dedicated to palm, but sorry I dont know Palm or their forums.&lt;BR /&gt;Anyway, I shortly asked Google for "Palm strToDouble" and some hits did show up. strToDouble is a library function used on Palm, please check the documentation of the libraries you are using.&lt;BR /&gt;Note that the function is strToDouble" not "StrToDouble" as in your initial mail (but I'm not 100% that he palm linker is case sensitive. I would hope so, but ANSI-C does not guarantee this).&lt;BR /&gt;Also name collisions tend to generate strange error messages, unfortunately you did not copy the ones you got, so its hard to say if they were actually a mystery or just what to expect for your error setup.&lt;BR /&gt;Anyway, the first thing to do when you get some error you really do not expect is to check the preprocessor output. Then look how your strToDouble code looks like and search in it for other declarations of strToDouble. Usually the name collision can be easily spotted this way (actually not sure for your case as you may have a link time name collision only).&lt;BR /&gt;&lt;BR /&gt;Also you found the cure: use another name :smileyhappy: (or in C++, use a namespace).&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2006 19:27:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Function-not-appearing/m-p/129819#M401</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2006-09-11T19:27:10Z</dc:date>
    </item>
  </channel>
</rss>

