LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Tim Prince (tprince_at_[hidden])
Date: 2005-07-06 08:44:27


Sumeet Kapur wrote:

>I am using "C" and want to use icc ?
>Doesn't lam build the mpicc (a c compiler) when I compile and install it.
>Also can you please tell me how to build a mpicc compiler if it doesn't get
>build on its own.
>
>What does it mean when you say ..
>".....not a recommended way to go. If you meant C, get rid of your C++
>stuff...."
>
>
>

Your top posting makes it difficult to reply, except by removing the
original stuff. Surely, you've noticed by now, that icc makes the same
distinction as gcc, as far as possible: it assumes that your code is C
code, unless known to be C++. So, when you use mpicc built with gcc or
icc, it doesn't link any C++ libraries by default. If you don't
know which of your code is C++, you could use nm to search the .o files
and find out which ones contain those C++ references. Did you make a
mistake in the source file name? For example, file.C, like file.cpp, is
taken as C++.