<?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 I already found what was in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/Cannot-link-ittnotify-with-generated-object-files/m-p/1054007#M14363</link>
    <description>&lt;P&gt;I already found what was wrong. On line 2 in solution 1 test.o has to be before linker flags. In that case it is linked correctly.&lt;/P&gt;</description>
    <pubDate>Sat, 17 Jan 2015 16:13:27 GMT</pubDate>
    <dc:creator>Krátký__Michal</dc:creator>
    <dc:date>2015-01-17T16:13:27Z</dc:date>
    <item>
      <title>Cannot link ittnotify with generated object files</title>
      <link>https://community.intel.com/t5/Analyzers/Cannot-link-ittnotify-with-generated-object-files/m-p/1054006#M14362</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am trying to use a VTune API (ittnotify.h) in C++ code. When I try to compile and link files with single command it works correctly. But when performing separate compilation and linking I get following error:&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;test.cpp:6: undefined reference to `__itt_pause_ptr__3_0'
test.cpp:6: undefined reference to `__itt_pause_ptr__3_0'
test.cpp:7: undefined reference to `__itt_resume_ptr__3_0'
test.cpp:7: undefined reference to `__itt_resume_ptr__3_0'&lt;/PRE&gt;

&lt;P&gt;Solution 1&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;icpc -Wall -c test.cpp -g -I/data/development/intel/vtune_amplifier_xe_2015/include -o test.o
icpc -g -I/data/development/intel/vtune_amplifier_xe_2015/include /data/development/intel/vtune_amplifier_xe_2015/lib64/libittnotify.a -lpthread test.o -o test&lt;/PRE&gt;

&lt;P&gt;Solution 2:&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;icpc -g test.cpp -I/data/development/intel/vtune_amplifier_xe_2015/include /data/development/intel/vtune_amplifier_xe_2015/lib64/libittnotify.a -lpthread -o test &lt;/PRE&gt;

&lt;P&gt;test.cpp&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;#include "stdio.h"
#include "ittnotify.h"

int main(int argc, char* argv[])
{
    __itt_pause();
    __itt_resume();
    return 1;
}
&lt;/PRE&gt;

&lt;P&gt;For my reasons &lt;SPAN style="line-height: 19.5120010375977px;"&gt;I cannot use single command version in solution 2&lt;/SPAN&gt;. Can you please help me fix steps in solution 1?&lt;/P&gt;

&lt;P&gt;System: SLES 11 SP3, Intel Parallel Studio 2015 Pro Update 1&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jan 2015 15:21:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Cannot-link-ittnotify-with-generated-object-files/m-p/1054006#M14362</guid>
      <dc:creator>Krátký__Michal</dc:creator>
      <dc:date>2015-01-17T15:21:20Z</dc:date>
    </item>
    <item>
      <title>I already found what was</title>
      <link>https://community.intel.com/t5/Analyzers/Cannot-link-ittnotify-with-generated-object-files/m-p/1054007#M14363</link>
      <description>&lt;P&gt;I already found what was wrong. On line 2 in solution 1 test.o has to be before linker flags. In that case it is linked correctly.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jan 2015 16:13:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Cannot-link-ittnotify-with-generated-object-files/m-p/1054007#M14363</guid>
      <dc:creator>Krátký__Michal</dc:creator>
      <dc:date>2015-01-17T16:13:27Z</dc:date>
    </item>
    <item>
      <title>It's great that you found</title>
      <link>https://community.intel.com/t5/Analyzers/Cannot-link-ittnotify-with-generated-object-files/m-p/1054008#M14364</link>
      <description>&lt;P&gt;It's great that you found the root-cause...&lt;/P&gt;

&lt;P&gt;If you use Pause/Resume API in MPI program, please read this &lt;A href="https://software.intel.com/en-us/articles/using-pauseresume-api-for-mpi-program"&gt;article&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;If you use Pause/Resume API in Intel(R) Xeon Phi(TM) program, please read this &lt;A href="https://software.intel.com/en-us/blogs/2015/01/06/use-pause-resume-api-of-vtune-amplifier-xe-2015-in-your-intel-xeon-phi-program"&gt;article&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jan 2015 08:38:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Cannot-link-ittnotify-with-generated-object-files/m-p/1054008#M14364</guid>
      <dc:creator>Peter_W_Intel</dc:creator>
      <dc:date>2015-01-18T08:38:00Z</dc:date>
    </item>
    <item>
      <title>Thanks!!</title>
      <link>https://community.intel.com/t5/Analyzers/Cannot-link-ittnotify-with-generated-object-files/m-p/1054009#M14365</link>
      <description>&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;This helped a lot!&lt;/P&gt;&lt;P&gt;I was stuck on this for eternity!&lt;/P&gt;</description>
      <pubDate>Sat, 07 Mar 2020 14:06:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Cannot-link-ittnotify-with-generated-object-files/m-p/1054009#M14365</guid>
      <dc:creator>Shivdikar__Kaustubh</dc:creator>
      <dc:date>2020-03-07T14:06:11Z</dc:date>
    </item>
  </channel>
</rss>

