Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Opening mat file in C
Date: Wed, 29 Jul 2009 22:20:18 +0000 (UTC)
Organization: Boeing
Lines: 11
Message-ID: <h4qhv1$t3$1@fred.mathworks.com>
References: <h4qaei$10m$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 1248906018 931 172.30.248.35 (29 Jul 2009 22:20:18 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 29 Jul 2009 22:20:18 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 756104
Xref: news.mathworks.com comp.soft-sys.matlab:559457


"Dhiman Saha" <saha.dhiman@gmail.com> wrote in message <h4qaei$10m$1@fred.mathworks.com>...
> I want to open a mat file which has some two dimensional matrices in a C file. I followed the help file on that but when i compile the file i get lots of errors like "undefined reference to matOpen" and such errors for all the matlab functions. I have included the mat.h file in the include directory of the compiler. I am using the minGW compiler on windows XP. 
> 
> IS there anything I need to include?
> 
> Thanks
> Dhiman

Have you also included mex.h or engine.h? Can you show the source code you are trying?

James Tursa