From: Dan Hensley <somewhere@over.there.invalid>
Newsgroups: comp.soft-sys.matlab
Subject: Re: create 32 bit mex files from 64 bit matlab?
Date: Tue, 06 Oct 2009 09:52:41 -0600
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <hafp2q$dj4$1@news.eternal-september.org>
References: <ha50cg$nim$1@fred.mathworks.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.eternal-september.org U2FsdGVkX1+xV7fjiEaEetzxK+KGyW1lNtqdFpPY1PN5BOx3liboxarhAL7iqmzNsBXNhekTZNyHk7mmYA5h4qfzUmlGEr11wFqKeUpFRqr8N5AjfmHXdKml/YJ29lXjwUx2XN81+sKZe46zkywksg==
X-Complaints-To: abuse@eternal-september.org
NNTP-Posting-Date: Tue, 6 Oct 2009 15:51:54 +0000 (UTC)
In-Reply-To: <ha50cg$nim$1@fred.mathworks.com>
X-Auth-Sender: U2FsdGVkX18y0hAEXNd66k7ctsNVdpq4jZj3ltY5mcKWYZFoi39dOg==
Cancel-Lock: sha1:qfcBtF6xbDaJ6LI4RklhvLUkH30=
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
Path: news.mathworks.com!newsfeed-00.mathworks.com!oleane.net!oleane!feed.ac-versailles.fr!proxad.net!feeder1-2.proxad.net!feeder.erje.net!feeder.eternal-september.org!eternal-september.org!not-for-mail
Xref: news.mathworks.com comp.soft-sys.matlab:575359


Sriram Swaminarayan wrote, On 10/2/2009 7:49 AM:
> platform: osx, intel
> matlab: 7.9.0.529 (R2009b), 64-bit (maci64), August 12, 2009
> 
> I want to create .mexmaci files using mex, but it looks like I have no way to create them using the mex that ships with this version of matlab.  
> 
> Even if I use 'mex -arch maci ', it still only creates '.mexmaci64' files.
> 
> Is there a simple way around this, or do I have to keep a 32 bit version of matlab around to create the '.mexmaci' files?

The latter.  The mex file needs to link against the appropriate 32bit 
Matlab libraries, which are only available with the 32bit installation.

Dan