Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

From: Anoop Rajendra (anoop.rajendra_at_[hidden])
Date: 2006-06-15 16:55:59


Hi.

I'm having trouble compiling applications to link statically

The command line and error I receive is

[root_at_Pebble-anoop examples]# mpicc -c cpi.c
[root_at_Pebble-anoop examples]# mpicc -static -o cpi cpi.o
/usr/bin/ld: cannot find -lmpi
collect2: ld returned 1 exit status

Not sure how I can compile an application statically. Can someone help?

Thanks,
Anoop