Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: compile to exe
Date: Thu, 18 Jun 2009 23:27:01 +0000 (UTC)
Organization: Procter &#38; Gamble Co
Lines: 10
Message-ID: <h1eig5$dm2$1@fred.mathworks.com>
References: <h1egve$ag1$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1245367621 14018 172.30.248.37 (18 Jun 2009 23:27:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 18 Jun 2009 23:27:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 512314
Xref: news.mathworks.com comp.soft-sys.matlab:548790


"hailiang shen" <hlshen2005@gmail.com> wrote in message <h1egve$ag1$1@fred.mathworks.com>...
> Hi All, 
> 
> I am trying to compile a project, including a .m file, a .dll file, and a .mex file. The m file calls function in dll and mex file. Is it possible to compile them into one .exe file? 
> 
> Thanks,
> 
> Hailiang
-----------------------------------------------------
Not in my experience.  It will bundle in all m files that the main m file calls but not the DLLs and mex files.  You will have to ship those separately along with your m-file's exe.  Bundle all those up using an installer program (such as Wise or Install Shield or many others), along with sample data files, documentation, mat files, Excel templates, and whatever other ancillary files you want to distribute with your package.