Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Problem with mpi.h (http://www.go4expert.com/forums/problem-with-mpih-t14811/)

-srv- 27Oct2008 06:48

Problem with mpi.h
 
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 27Oct2008 13:22

Re: Problem with mpi.h
 
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- 27Oct2008 16:51

Re: Problem with mpi.h
 
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- 27Oct2008 18:21

Re: Problem with mpi.h
 
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 23Nov2009 23:01

Re: Problem with mpi.h
 
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.


All times are GMT +5.5. The time now is 00:28.