Put your source code in any directory you choose. Better put is somewhere else other than the directory where mpi.h is found. Better in its own directory.
Then use mpicc to compile the file. If it is called sample.c then type 'mpicc -o sample sample.c'.
Good luck!
"Sent via BlackBerry from Smart"
-----Original Message-----
From: fuat sungur <futi78_at_[hidden]>
Date: Sat, 26 Apr 2008 08:47:30
To:<lam_at_[hidden]>
Subject: LAM: Why does mpi.h give an error
hi, i am newbie of LAM MPI, and i installed it yesterday.
it is okey.
i can run the lamboot and mpirun command, so i see that they works.
but i couldnt compile any mpi source code. When i try it, "mpi.h" no such file... Then, i put my source code same directory of mpi.h file then i changed the source code that line with "mpi.h" , then i've tried again, for this time this error would seemed :
...
...
mpi.h:1095: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ARGS'
mpi.h:1096: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ARGS'
---
how can i fix it? thanx for responses...
_________________________________________________________________
Live.com'u deneyin - hızlı ve kiÅiselleÅtirilmiÅ giriÅ sayfanızla istediÄiniz her Åey tek bir yerde.
http://www.live.com/getstarted
_______________________________________________
This list is archived at http://www.lam-mpi.org/MailArchives/lam/
|