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

  • Home
  • SEARCH
  • 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 6674811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:46:30+00:00 2026-05-26T03:46:30+00:00

I write a parallel code that I can compile it and run it under

  • 0

I write a parallel code that I can compile it and run it under win7 but now I have to run it under linux ubuntu 11.04 when I compile my code I get this error:

usr/bin/ld :cannot find -lcr

collect2:ld returned 1 exit status

my compiler is mpicxx and I use mpich2.
my code has about 3000 lines but I use the following code for testing

#include <iostream>
#include <mpi.h>

using namespace std;

int main(int argc, char ** argv){
    int mynode, totalnodes;
    MPI_Init(&argc,&argv);
    MPI_Comm_size(MPI_COMM_WORLD, &totalnodes);
    MPI_Comm_rank(MPI_COMM_WORLD, &mynode);
    cout << "Hello world from process " << mynode;
    cout << " of " << totalnodes << endl;
    MPI_Finalize();
}

and I use this command for compiling it mpicxx hello.cpp

  • 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-26T03:46:30+00:00Added an answer on May 26, 2026 at 3:46 am

    usr/bin/ld :cannot find -lcr

    Googling around shows the cr library is provided by the Berkeley Lab Checkpoint Restart (BLCR) package. I think you need to install it.

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

Sidebar

Related Questions

I have a C++ code that can be compiled with MPI support depending on
I write simple C++ code that compute array reduction sum, but with OpenMP reduction
I want to write a code converter that takes an OpenMP based parallel program
How can I write to parallel port through Windows XP command line?
I need to write a simple program that records all the input from parallel
Can I write code against .Net 4 and its libraries using VS2008? If so
I have a C# prototype that is heavily data parallel, and I've had extremely
I have a scientific application which I usually run in parallel with xargs ,
I have some code that I need to fix to print Hello World!. For
I've inherited a bunch of code that makes extensive use of parallel arrays to

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.