From: mathias@informatik.uni-mannheim.de (Mathias Waack)
Newsgroups: comp.parallel.mpi
Subject: Re: gcc and MPI on a Sun HPC 3500
Date: 11 May 1999 07:54:48 GMT
Organization: no organization, simple chaos
Message-Id: <7h8no8$p27$1@trumpet.uni-mannheim.de>
References: <37376A37.3B27E1B5@itsa.ucsf.edu>
Reply-To: M.Waack@gmx.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Xref: ukc comp.parallel.mpi:5068


Hi all!

In article <37376A37.3B27E1B5@itsa.ucsf.edu>,
	Karl Young <kyoung@itsa.ucsf.edu> writes:
> I'm trying to write some C++ programs with calls to the MPI library on a
> multiprocessor Sun system (HPC 3500). Because I need to link to some
> libraries that have been compiled with gcc I need to compile my programs
> under gcc 2.8.1. 
You should be able to link your program with both 
the Sun ld and the gnu ld against your libraries. 

> I am currently able to compile the programs but when I
> try to run them I get an "Exec format error". Does anybody know what the
> proper compiler flags to gcc are for linking to the Sun MPI library and
> running in the multiprocessor environment ? 
You're using the gnu linker or the native Sun linker? 
Check if the gcc is installed for your system (not as a 
cross compiler). Normally you don't need any special options 
for the gcc (except the include and linker options for the 
mpi headers and libs). 

Mathias

[posted only to comp.parallel.mpi]

-- 
Mathias Waack           |     Mathias.Waack@ti.uni-mannheim.de
Tel.:  +49 621 292 1620  Fax.:  +49 621 292 5597

