Path: news.mathworks.com!not-for-mail
From: "Daniel Vogel" <vogel@stanford.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Linking C++ and Matlab using VS2003
Date: Wed, 4 Jun 2008 22:14:02 +0000 (UTC)
Organization: Stanford
Lines: 24
Message-ID: <g2743a$ajq$1@fred.mathworks.com>
References: <g24er6$rgq$1@fred.mathworks.com> <g24m3m$1cv$1@fred.mathworks.com>
Reply-To: "Daniel Vogel" <vogel@stanford.edu>
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 1212617642 10874 172.30.248.37 (4 Jun 2008 22:14:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 4 Jun 2008 22:14:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1405345
Xref: news.mathworks.com comp.soft-sys.matlab:472246



"James Tursa" <aclassyguywithaknotac@hotmail.com> wrote in message 
<g24m3m$1cv$1@fred.mathworks.com>...
> 
> How are you compiling your program? Are you using the mex 
> command from the MATLAB command line, or are you trying to 
> do the compile from within the Visual Studio environment? 
> I usually do the compile using the mex command at the 
> MATLAB prompt, but this usually means I have to manually 
> copy any dll files from the C++ or Fortran compiler 
> directories and then specify them in the mex command to 
> get the link to work. I haven't tried the other way, as 
> you seem to be doing.
> 
> James Tursa
> 


I'm trying to compile it directly from VS2003. I solved my problem 
downgrading from the latest version of Matlab to 6.5 (which I had lying 
around). It now works perfectly only with the linking of the libraries + dll 
files.


Could this be a bug in Matlab R2008a?