LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: bhaarat Sharma (bhaarat.s_at_[hidden])
Date: 2006-01-05 13:48:31


I do have g++ on my system and i have compiled normal (not mpi) c++
programs easily.

I found the solution. In the bin folder there is mpicxx which
compiled the c++ programs fine.

Now I am having trouble with mpirun but i think its a error with the
way our systems are configured. I get back with details on the
current program.

Thanks

On 1/5/06, Yuan Tang <yuantang_at_[hidden]> wrote:
> 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/
> >
> >
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>

--
-bhaarat