Problem with mpi.h

Discussion in 'C' started by -srv-, Oct 27, 2008.

  1. -srv-

    -srv- New Member

    Joined:
    Oct 27, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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.
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    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?
     
  3. -srv-

    -srv- New Member

    Joined:
    Oct 27, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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.
     
  4. -srv-

    -srv- New Member

    Joined:
    Oct 27, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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??
     
  5. gattu

    gattu New Member

    Joined:
    Nov 23, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice