<?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 Prototypes in c in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Prototypes-in-c/m-p/741455#M597</link>
    <description>&lt;BR /&gt;&lt;BR /&gt;I havea lot oflegacy code in c. Each function is prototyped in a separate header file tha contains all of the functions definitions.&lt;BR /&gt;&lt;BR /&gt;1. When I made main.c a main.cilk and compiled all was fine -I included cilk-lib.cilkh in the include section for main.cilk. I also preceded main with th word cilk for cilk main. I compiled with no errors.&lt;BR /&gt;&lt;BR /&gt;2. The called function WEG.c from cilk main was spawned next. The WEG.c was changed to WEG.cilk and againcilk-lib.cilkh was included in the WEG.cilk include and WEG.c name changed to WEG.cilk giving the WEG function in WEG.cilk a new definition.This caused an error:&lt;BR /&gt;&lt;BR /&gt;WEG.cilk.95: identifier "WEG" redeclared&lt;BR /&gt; Previous declaration in WEGfundefs.h&lt;BR /&gt;&lt;BR /&gt;Compilation failed. . .&lt;BR /&gt;&lt;BR /&gt;Of course, I didredeclare it and that creates the errror. There is no prototype for WEG.cilk, but there is one for WEG.c. What should I do. The function WEG in WEG.cilk is now cilk WEG.&lt;BR /&gt;&lt;BR /&gt;Do I eliminate/redefine the protoptype? Add a prototype for cilk WEG function?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any help appreciated. Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Newport_j&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 22 Mar 2012 14:43:36 GMT</pubDate>
    <dc:creator>newport_j</dc:creator>
    <dc:date>2012-03-22T14:43:36Z</dc:date>
    <item>
      <title>Prototypes in c</title>
      <link>https://community.intel.com/t5/Software-Archive/Prototypes-in-c/m-p/741455#M597</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;I havea lot oflegacy code in c. Each function is prototyped in a separate header file tha contains all of the functions definitions.&lt;BR /&gt;&lt;BR /&gt;1. When I made main.c a main.cilk and compiled all was fine -I included cilk-lib.cilkh in the include section for main.cilk. I also preceded main with th word cilk for cilk main. I compiled with no errors.&lt;BR /&gt;&lt;BR /&gt;2. The called function WEG.c from cilk main was spawned next. The WEG.c was changed to WEG.cilk and againcilk-lib.cilkh was included in the WEG.cilk include and WEG.c name changed to WEG.cilk giving the WEG function in WEG.cilk a new definition.This caused an error:&lt;BR /&gt;&lt;BR /&gt;WEG.cilk.95: identifier "WEG" redeclared&lt;BR /&gt; Previous declaration in WEGfundefs.h&lt;BR /&gt;&lt;BR /&gt;Compilation failed. . .&lt;BR /&gt;&lt;BR /&gt;Of course, I didredeclare it and that creates the errror. There is no prototype for WEG.cilk, but there is one for WEG.c. What should I do. The function WEG in WEG.cilk is now cilk WEG.&lt;BR /&gt;&lt;BR /&gt;Do I eliminate/redefine the protoptype? Add a prototype for cilk WEG function?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any help appreciated. Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Newport_j&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Mar 2012 14:43:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Prototypes-in-c/m-p/741455#M597</guid>
      <dc:creator>newport_j</dc:creator>
      <dc:date>2012-03-22T14:43:36Z</dc:date>
    </item>
    <item>
      <title>Prototypes in c</title>
      <link>https://community.intel.com/t5/Software-Archive/Prototypes-in-c/m-p/741456#M598</link>
      <description>&lt;P&gt;If your code is using "cilk-lib.cilkh", it sounds like youare now using MIT Cilk? As mentioned earlier, MIT Cilk is no longer supported / maintained by anyone (as far as I know).&lt;BR /&gt;&lt;BR /&gt;From what I remember, you can create ".cilkh" files, to define prototypes for Cilk functions instead of ".h" files. I believe in some cases, the MIT Cilk "compiler' treats ".h" files as C code. Beyond that, your guess is as probably as good as mine. You may need to do some experimentation to figure it out.&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Jim&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2012 15:04:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Prototypes-in-c/m-p/741456#M598</guid>
      <dc:creator>Jim_S_Intel</dc:creator>
      <dc:date>2012-03-22T15:04:09Z</dc:date>
    </item>
  </channel>
</rss>

