This web mail archive is frozen.
This page is part of a frozen web archive of this mailing list.
You can still navigate around this archive, but know that no new mails
have been added to it since July of 2016.
Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.
OpenMPI defaults to building only shared libraries; see this FAQ entry
for building static libraries:
Hope this helps.
> -----Original Message-----
> From: users-bounces_at_[hidden]
> [mailto:users-bounces_at_[hidden]] On Behalf Of Anoop Rajendra
> Sent: Thursday, June 15, 2006 4:56 PM
> To: users_at_[hidden]
> Subject: [OMPI users] Cannot link statically against OpenMPI programs
> 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?
> users mailing list