Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Linking C++ and Matlab using VS2003
Date: Wed, 4 Jun 2008 00:03:02 +0000 (UTC)
Organization: Boeing
Lines: 13
Message-ID: <g24m3m$1cv$1@fred.mathworks.com>
References: <g24er6$rgq$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 1212537782 1439 172.30.248.37 (4 Jun 2008 00:03:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 4 Jun 2008 00:03:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 756104
Xref: news.mathworks.com comp.soft-sys.matlab:472084




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