<?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 Re: Error when linking with Intel MPI -- C++ Binding problem?  in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/Error-when-linking-with-Intel-MPI-C-Binding-problem/m-p/885861#M1973</link>
    <description>&lt;P&gt;Hi, Jacky&lt;/P&gt;
&lt;P&gt;Thanks for posting.&lt;/P&gt;
&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/429854"&gt;jackyjngwn&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;P&gt;Is this a c++ binding problem, but isn't MPI 3.2 supposed to support C++ binding automatically?&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;
&lt;P&gt;Certainly, the Intel MPI Library 3.2 supports theC++ bindings by default.&lt;/P&gt;
&lt;P&gt;It'll be interesting to know how you're doing your compilation. Could you provide your command line &amp;amp; flags?&lt;/P&gt;
&lt;P&gt;In general, we recommend you use one of the provided compiler drivers for the Intel MPI Library: such as &lt;STRONG&gt;mpigxx&lt;/STRONG&gt; for the GNU* C++ compiler, or &lt;STRONG&gt;mpiicpc&lt;/STRONG&gt; for the Intel C++ Compiler. Is that what you're doing?&lt;/P&gt;
&lt;P&gt;More info on usage and so forth is available from the Intel MPI Library Reference Manual located in the &lt;INSTALL_DIR&gt;/doc directory, or online &lt;A href="http://software.intel.com/en-us/articles/intel-mpi-library-documentation/" target="_blank"&gt;here&lt;/A&gt;.&lt;/INSTALL_DIR&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;~Gergana&lt;/P&gt;</description>
    <pubDate>Wed, 26 Aug 2009 18:13:54 GMT</pubDate>
    <dc:creator>Gergana_S_Intel</dc:creator>
    <dc:date>2009-08-26T18:13:54Z</dc:date>
    <item>
      <title>Error when linking with Intel MPI -- C++ Binding problem?</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Error-when-linking-with-Intel-MPI-C-Binding-problem/m-p/885860#M1972</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;&lt;BR /&gt;I was trying to compile a c++ program using Intel compiler and Intel MPI 3.2. The compilation was successful, but during linking, I got the following error message: &lt;BR /&gt;&lt;BR /&gt;: undefined reference to `MPI::INTEGER'&lt;BR /&gt;&lt;BR /&gt;Is this a c++ binding problem, but isn't MPI 3.2 supposed to support C++ binding automatically? Could someone help me? Thanks!&lt;BR /&gt;&lt;BR /&gt;Jacky&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2009 18:04:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Error-when-linking-with-Intel-MPI-C-Binding-problem/m-p/885860#M1972</guid>
      <dc:creator>jackyjngwn</dc:creator>
      <dc:date>2009-08-26T18:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error when linking with Intel MPI -- C++ Binding problem?</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Error-when-linking-with-Intel-MPI-C-Binding-problem/m-p/885861#M1973</link>
      <description>&lt;P&gt;Hi, Jacky&lt;/P&gt;
&lt;P&gt;Thanks for posting.&lt;/P&gt;
&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/429854"&gt;jackyjngwn&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;P&gt;Is this a c++ binding problem, but isn't MPI 3.2 supposed to support C++ binding automatically?&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;
&lt;P&gt;Certainly, the Intel MPI Library 3.2 supports theC++ bindings by default.&lt;/P&gt;
&lt;P&gt;It'll be interesting to know how you're doing your compilation. Could you provide your command line &amp;amp; flags?&lt;/P&gt;
&lt;P&gt;In general, we recommend you use one of the provided compiler drivers for the Intel MPI Library: such as &lt;STRONG&gt;mpigxx&lt;/STRONG&gt; for the GNU* C++ compiler, or &lt;STRONG&gt;mpiicpc&lt;/STRONG&gt; for the Intel C++ Compiler. Is that what you're doing?&lt;/P&gt;
&lt;P&gt;More info on usage and so forth is available from the Intel MPI Library Reference Manual located in the &lt;INSTALL_DIR&gt;/doc directory, or online &lt;A href="http://software.intel.com/en-us/articles/intel-mpi-library-documentation/" target="_blank"&gt;here&lt;/A&gt;.&lt;/INSTALL_DIR&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;~Gergana&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2009 18:13:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Error-when-linking-with-Intel-MPI-C-Binding-problem/m-p/885861#M1973</guid>
      <dc:creator>Gergana_S_Intel</dc:creator>
      <dc:date>2009-08-26T18:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error when linking with Intel MPI -- C++ Binding problem?</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Error-when-linking-with-Intel-MPI-C-Binding-problem/m-p/885862#M1974</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/198675"&gt;Gergana Slavova (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;P&gt;Hi, Jacky&lt;/P&gt;
&lt;P&gt;Thanks for posting.&lt;/P&gt;
&lt;BR /&gt;
&lt;P&gt;Certainly, the Intel MPI Library 3.2 supports theC++ bindings by default.&lt;/P&gt;
&lt;P&gt;It'll be interesting to know how you're doing your compilation. Could you provide your command line &amp;amp; flags?&lt;/P&gt;
&lt;P&gt;In general, we recommend you use one of the provided compiler drivers for the Intel MPI Library: such as &lt;STRONG&gt;mpigxx&lt;/STRONG&gt; for the GNU* C++ compiler, or &lt;STRONG&gt;mpiicpc&lt;/STRONG&gt; for the Intel C++ Compiler. Is that what you're doing?&lt;/P&gt;
&lt;P&gt;More info on usage and so forth is available from the Intel MPI Library Reference Manual located in the &lt;INSTALL_DIR&gt;/doc directory, or online &lt;A href="http://software.intel.com/en-us/articles/intel-mpi-library-documentation/" target="_blank"&gt;here&lt;/A&gt;.&lt;/INSTALL_DIR&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;~Gergana&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;I am not using mpiicpc, but icpc to compile and link. &lt;BR /&gt;&lt;BR /&gt;The command options include -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_NO_SI_RECURSION -D_USING_MPI -DMPICH_IGNORE_CXX_SEEK -DHAVE_FORTRAN_BINDING &lt;BR /&gt;&lt;BR /&gt;The libraries are: -L $(MPI_ROOT)/lib64 -lmpi -lmpichcxx -lpmpich -lrt -ldl -lmpiic4 -lmpiif -lmpigi -lpthread&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 26 Aug 2009 18:30:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Error-when-linking-with-Intel-MPI-C-Binding-problem/m-p/885862#M1974</guid>
      <dc:creator>jackyjngwn</dc:creator>
      <dc:date>2009-08-26T18:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error when linking with Intel MPI -- C++ Binding problem?</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Error-when-linking-with-Intel-MPI-C-Binding-problem/m-p/885863#M1975</link>
      <description>&lt;P&gt;Thanks, Jacky.&lt;/P&gt;
&lt;P&gt;Are you including the correct header files when compiling? For example, this is what I would use to compile/link a simple Hello World C++ program:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;icpc test.cpp -o testcpp &lt;STRONG&gt;-I/opt/intel/impi/3.2.1.009/include64&lt;/STRONG&gt; -L/opt/intel/impi/3.2.1.009/lib64 -lmpiic4 -lmpi -lmpiif -lmpigi -lrt -lpthread -ldl&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Can you also make sure that MPI_ROOT is defined correctly in your environment? By default, if you source one of the mpivars.&lt;C&gt;sh files in &lt;INSTALL_DIR&gt;/bin64, the &lt;STRONG&gt;I_MPI_ROOT&lt;/STRONG&gt; env variable would be defined for you to use.&lt;/INSTALL_DIR&gt;&lt;/C&gt;&lt;/P&gt;
&lt;P&gt;Finally, it seems like you're actually linking with some of the MPICH-specific libraries; is this for a particular reason? (By the way, there's no -lpmpich library, perhaps you mean -lmpich).&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;~Gergana&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2009 18:53:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Error-when-linking-with-Intel-MPI-C-Binding-problem/m-p/885863#M1975</guid>
      <dc:creator>Gergana_S_Intel</dc:creator>
      <dc:date>2009-08-26T18:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error when linking with Intel MPI -- C++ Binding problem?</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Error-when-linking-with-Intel-MPI-C-Binding-problem/m-p/885864#M1976</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/198675"&gt;Gergana Slavova (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;P&gt;Thanks, Jacky.&lt;/P&gt;
&lt;P&gt;Are you including the correct header files when compiling? For example, this is what I would use to compile/link a simple Hello World C++ program:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;icpc test.cpp -o testcpp &lt;STRONG&gt;-I/opt/intel/impi/3.2.1.009/include64&lt;/STRONG&gt; -L/opt/intel/impi/3.2.1.009/lib64 -lmpiic4 -lmpi -lmpiif -lmpigi -lrt -lpthread -ldl&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Can you also make sure that MPI_ROOT is defined correctly in your environment? By default, if you source one of the mpivars.&lt;C&gt;sh files in &lt;INSTALL_DIR&gt;/bin64, the &lt;STRONG&gt;I_MPI_ROOT&lt;/STRONG&gt; env variable would be defined for you to use.&lt;/INSTALL_DIR&gt;&lt;/C&gt;&lt;/P&gt;
&lt;P&gt;Finally, it seems like you're actually linking with some of the MPICH-specific libraries; is this for a particular reason? (By the way, there's no -lpmpich library, perhaps you mean -lmpich).&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;~Gergana&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Yeah, right, I meant -lmpich and mispelled it. &lt;BR /&gt;&lt;BR /&gt;I did make sure that all my paths are set correctly, and I did include correct header files when compiling. I could link successfully if I replace "MPI::INTEGER" with "MPI_INT", but I wonder why I could not get it work with "MPI::INTEGER". &lt;BR /&gt;&lt;BR /&gt;This makefile used to use gcc and MPICH, and maybe that's why it seems that I am using MPICH specific libraries. Do you have any suggestions on what libraries I should use? Thanks.</description>
      <pubDate>Wed, 26 Aug 2009 19:18:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Error-when-linking-with-Intel-MPI-C-Binding-problem/m-p/885864#M1976</guid>
      <dc:creator>jackyjngwn</dc:creator>
      <dc:date>2009-08-26T19:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error when linking with Intel MPI -- C++ Binding problem?</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Error-when-linking-with-Intel-MPI-C-Binding-problem/m-p/885865#M1977</link>
      <description>&lt;P&gt;Jacky,&lt;/P&gt;
&lt;P&gt;Would you be willing to send me your Makefile and/or the code you're trying to compile? It might be easier for me to try it locally. My e-mail address is in the signature below. Just replace the "_at_" with "@". Thanks!&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;~Gergana&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2009 19:23:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Error-when-linking-with-Intel-MPI-C-Binding-problem/m-p/885865#M1977</guid>
      <dc:creator>Gergana_S_Intel</dc:creator>
      <dc:date>2009-08-26T19:23:19Z</dc:date>
    </item>
  </channel>
</rss>

