<?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 and you have added -lstdc++ in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Using-thread-local-on-C-throws-error/m-p/1029933#M6665</link>
    <description>&lt;P&gt;and you have added -lstdc++ option to the linker, right?&lt;/P&gt;</description>
    <pubDate>Mon, 02 Jun 2014 07:04:46 GMT</pubDate>
    <dc:creator>Vladimir_P_1234567890</dc:creator>
    <dc:date>2014-06-02T07:04:46Z</dc:date>
    <item>
      <title>Using thread_local on C++ throws error</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Using-thread-local-on-C-throws-error/m-p/1029930#M6662</link>
      <description>&lt;P&gt;I have been trying to convert a C++ MPI code into OpenMP. There are large number of static member variables (mostly dynamic lists of class objects), and i am trying to use 'thread_local' to make sure there are no conflicts. But the file does not compile and threw error: "&lt;SPAN style="color: rgb(0, 0, 0); font-family: monospace, 'Courier New', Courier, monospace; font-size: medium; line-height: normal;"&gt;error: expected a ";"&lt;/SPAN&gt;". I was using ICC 14.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;When i tried to use ICC 15 beta version, the particular file where i used thread_local compiled, but the compilation of the whole application failed at some other point: "&lt;SPAN style="color: rgb(0, 0, 0); font-family: monospace, 'Courier New', Courier, monospace; font-size: medium; line-height: normal;"&gt;undefined reference to '__cxa_thread_atexit'&lt;/SPAN&gt;".&lt;/P&gt;

&lt;P&gt;Would greatly appreciate help in solving this issue.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2014 06:44:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Using-thread-local-on-C-throws-error/m-p/1029930#M6662</guid>
      <dc:creator>Rihab_A_</dc:creator>
      <dc:date>2014-06-02T06:44:02Z</dc:date>
    </item>
    <item>
      <title>have you added -std=c++0x</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Using-thread-local-on-C-throws-error/m-p/1029931#M6663</link>
      <description>&lt;P&gt;have you added -std=c++0x option?&lt;/P&gt;

&lt;P&gt;and what is gcc version?&lt;/P&gt;

&lt;P&gt;--Vladimir&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2014 06:49:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Using-thread-local-on-C-throws-error/m-p/1029931#M6663</guid>
      <dc:creator>Vladimir_P_1234567890</dc:creator>
      <dc:date>2014-06-02T06:49:00Z</dc:date>
    </item>
    <item>
      <title>Yes, i was using -std=c++0x,</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Using-thread-local-on-C-throws-error/m-p/1029932#M6664</link>
      <description>&lt;P&gt;Yes, i was using -std=c++0x, also tried -std=c++11.&lt;/P&gt;

&lt;P&gt;gcc version is 4.4.7&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2014 07:02:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Using-thread-local-on-C-throws-error/m-p/1029932#M6664</guid>
      <dc:creator>Rihab_A_</dc:creator>
      <dc:date>2014-06-02T07:02:17Z</dc:date>
    </item>
    <item>
      <title>and you have added -lstdc++</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Using-thread-local-on-C-throws-error/m-p/1029933#M6665</link>
      <description>&lt;P&gt;and you have added -lstdc++ option to the linker, right?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2014 07:04:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Using-thread-local-on-C-throws-error/m-p/1029933#M6665</guid>
      <dc:creator>Vladimir_P_1234567890</dc:creator>
      <dc:date>2014-06-02T07:04:46Z</dc:date>
    </item>
    <item>
      <title>i hadn't put the -lstdc++</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Using-thread-local-on-C-throws-error/m-p/1029934#M6666</link>
      <description>&lt;P&gt;i hadn't put the -lstdc++ option. Its compiling now with it.&lt;/P&gt;

&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2014 08:37:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Using-thread-local-on-C-throws-error/m-p/1029934#M6666</guid>
      <dc:creator>Rihab_A_</dc:creator>
      <dc:date>2014-06-02T08:37:10Z</dc:date>
    </item>
    <item>
      <title>Unfortunately, the thread</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Using-thread-local-on-C-throws-error/m-p/1029935#M6667</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Unfortunately, the thread_local issue is not yet resolved. I was able to get it compiled once, but when i did a clean build of the whole application, the problem 'undefined reference to __cxa_thread_atexit' is still there.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;Using the latest gcc (4.9.0) removes the above error but throws another error: 'error: identifier "__builtin_ia32_vfmaddss" is undefined'. (I used -cxxlib flag in icpc for providing the latest gcc path).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2014 15:18:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Using-thread-local-on-C-throws-error/m-p/1029935#M6667</guid>
      <dc:creator>Rihab_A_</dc:creator>
      <dc:date>2014-06-03T15:18:17Z</dc:date>
    </item>
  </channel>
</rss>

