Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6912387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:05:08+00:00 2026-05-27T09:05:08+00:00

Hi I wanted to learn using MPI in C. I am using Codeblocks on

  • 0

Hi I wanted to learn using MPI in C. I am using Codeblocks on Windows 7

I ran this program:

#include <stdio.h>
#include <mpi.h>

void main (int argc, char *argv[]) {
   int err;
   err = MPI_Init(&argc, &argv);
   printf("Hello world!\n");
   err = MPI_Finalize();
}

but for some reason, i get an error at “mpi.h”. Is there a way to add the library?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:05:09+00:00Added an answer on May 27, 2026 at 9:05 am

    First, install an implementation of MPI. In the past I’ve used MPICH, but there are other implementations available. I know another is LAM/MPI. Check out the Wikipedia page for additional information at:

    http://en.wikipedia.org/wiki/Message_Passing_Interface#Implementations

    After you install MPI, use the sample code provided in the Wikipedia article to get comfortable.

    Good luck!

    Al

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After I've seen this PDC session I wanted to try to learn a bit
I wanted to learn a little about multi threading in .NET and grabbed this
If I wanted to learn about pattern recognition in general what would be a
I've always wanted to learn assembly, but there seems to be a jungle of
I am programming in Ruby and have wanted to learn about matrices but I
I decided to learn concurrency and wanted to find out in how many ways
I would like to learn ASP.NET and just wanted some input as to which
I am curious to learn Boost . But I wanted to ask: How important
I wanted to learn how to create python packages, so I visited http://docs.python.org/distutils/index.html .
Well I know basic Java and wanted to learn Swing so of course looked

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.