Path: news.mathworks.com!not-for-mail
From: Brian Arnold <barnold@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Problems with fortran mex on MACOSX Leopard
Date: Mon, 07 Jan 2008 09:46:02 -0500
Organization: The MathWorks, Inc.
Lines: 35
Message-ID: <47823B2A.3000006@mathworks.com>
References: <fga3tm$1p6$1@fred.mathworks.com> <fgfp8d$p7a$1@fred.mathworks.com> <fl5etm$fve$1@fred.mathworks.com> <477BD186.1040709@mathworks.com> <flhlsc$7v8$1@fred.mathworks.com> <flslsr$m2k$1@fred.mathworks.com>
NNTP-Posting-Host: dev02maci.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1199717162 19905 144.212.107.10 (7 Jan 2008 14:46:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 7 Jan 2008 14:46:02 +0000 (UTC)
To: Ben Abbott <abbott.bp@gmail.com>
User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031)
In-Reply-To: <flslsr$m2k$1@fred.mathworks.com>
Xref: news.mathworks.com comp.soft-sys.matlab:444670



Woo hoo!

The linker warning is new to Xcode 3's linker, and not specific to g95. 
  It is (correctly) warning that there are two libz's on the path.  On 
startup, MATLAB's libz is loaded first, and MATLAB requires this version 
for correct operation.  It happens to be the same version (1.2.3) 
currently provided by both Tiger and Leopard.

Brian


Ben Abbott wrote:
> Update:
> 
> Fink now has g95 for Leopard available.
> 
> http://pdb.finkproject.org/pdb/package.php/g95
> 
> I haven't done much with it, but I did try one of Mathwork's examples.
> 
>>> mex yprimef.F yprimefg.F
> ld: warning, duplicate dylib 
> /Applications/MATLAB_R2007b/bin/maci/libz.1.dylib
>>> yprimef(1,1:4)
> 
> ans =
> 
>     2.0000    8.9685    4.0000   -1.0947
> 
> 
> In spite of the linker warning, it appears to work!
> 
> Ben
> 
>