LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Yuan Tang (yuantang_at_[hidden])
Date: 2006-01-05 12:53:10


I guess, first you should have g++ or some c++ compiler on your system.
then compile lam with c++ support.
Finally compile your program with mpiCC/mpic++, other than mpicc.

Good luck

Yuan

bhaarat Sharma wrote:

>Hello
>I have recently installed mpi-gm on the system. In the examples
>folder..i try to run hello++.cc with this command
>
>mpicc -o hello++.out hello++.cc but it gives me errors saying that it
>cant recognize MPI calls or even the "<<" ">>" operators.
>
>However when i run an example called cpi.c with the command
>mpicc -o cpi.o cpi.c it runs fine without any errors
>
>So mpicc is not working for C++ programs but is working for C
>programs. Is there a different compiler i should be using to compile
>C++ programs??
>
>Thanks
>--
>-bhaarat
>
>_______________________________________________
>This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
>