Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: using fsolve in embedded c++
Date: Tue, 5 Aug 2008 05:49:01 +0000 (UTC)
Organization: Polytechnique de Montreal
Lines: 21
Message-ID: <g78pkd$fm1$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1217915341 16065 172.30.248.35 (5 Aug 2008 05:49:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 5 Aug 2008 05:49:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1457453
Xref: news.mathworks.com comp.soft-sys.matlab:483636



Ok here it goes:

I have a matlab script which uses fsolve to solve non linear
equations. I want to integrate this script in my c++
program. I have read and understood the reference guide to
embed matlab in c++. However, the runtime of my c++ program
stops when reaching the fsolve line because I believe is not
part of the embedded functions that Matlab provides.
Therefore I need to use eml.extrinsic. However, when I put
eml.extrinsic('fsolve') in my matlab script and compile it
again, I get this during the runtime of my c++ program:

??? Undefined variable "eml" or class "eml.extrinsic".

Anybody can help me with this ? Am i missing something
during compilation of matlab (mcc) or Visual Studio ?

My matlab version is r2007b and eml.extrinsic package exists
(typing eml.extrinsic in the matlab console confirms it).

Thanks for any input