Problem with mpi.h

-srv-'s Avatar, Join Date: Oct 2008
Newbie Member
So, im trying to compile a very simple C program that uses mpi.h , ive installed the libc6 and build-essentials and im using gcc. The problem is i didnt have mpi.h first, so i downloaded it from koders.com , but the mpi.h uses another header that i didnt have, and that other .h includes another one so its imposible to get all the .h so i can compile my program. My question is, where can i get all these .h that i need?? i mean some kind of package that includes non standar headers o something.
thanks in advance.
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
Which files are you talking about? mpi.h includes four headers: stdio.h, iobuf.h, types.h and memory.h The first three are part of the standard library. So I thought you might have meant memory.h, but it doesn't include anything else.
Also what OS are you using, and what exactly are all the errors you get?
-srv-'s Avatar, Join Date: Oct 2008
Newbie Member
Quote:
Originally Posted by xpi0t0s
Which files are you talking about? mpi.h includes four headers: stdio.h, iobuf.h, types.h and memory.h The first three are part of the standard library. So I thought you might have meant memory.h, but it doesn't include anything else.
Also what OS are you using, and what exactly are all the errors you get?
1st , thanks for your reply
Im using Ubuntu .
about the headers, i had stdio.h but didnt have iobuf.h or types.h .
the problem y had was that when 1 of the headers was missing (ex. iobuf.h) then i downloaded it , but it uses more files that i dont have (i think they where config.h and/or maps.h and something else) so, then when i added those files i found that they use headers that (surprisingly) i dont have either .
Im using gcc for compiling and the errors i get is that iobuf.h doesnt exist, then i get that types.h doesnt exist, etc, etc.
i made a search for the files and they really arent anywhere , its not just that the path is wrong.
thanks again.
-srv-'s Avatar, Join Date: Oct 2008
Newbie Member
update: i finally got all the .h i needed , i no longer get any errors of missing headers, the problem now is i get like 10 "syntax error before ‘byte’" . like
/usr/include/iobuf.h:54: error: syntax error before ‘byte’

and also some other errors that make me think that there is a problem with the header that defines byte . where is it supposed to be this definition??
gattu like this
gattu's Avatar, Join Date: Nov 2009
Newbie Member
So, im trying to compile a very simple C program that uses mpi.h , ive installed the libc6 and build-essentials and im using gcc. The problem is i didnt have mpi.h first, so i downloaded it from koders.com , but the mpi.h uses another header that i didnt have, and that other .h includes another one so its imposible to get all the .h so i can compile my program. My question is, where can i get all these .h that i need?? i mean some kind of package that includes non standar headers o something.
thanks in advance.