Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!j19g2000yqk.googlegroups.com!not-for-mail
From: Ralf <meteoradix@gmx.net>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Compiling MEX-file with external library
Date: Fri, 30 Oct 2009 00:22:34 -0700 (PDT)
Organization: http://groups.google.com
Lines: 43
Message-ID: <960bc739-bb17-4d68-a54b-a35196e7ac34@j19g2000yqk.googlegroups.com>
References: <a23855e8-0d6f-4496-b672-014203e218e1@p15g2000vbl.googlegroups.com> 
	<hcch1u$73r$1@fred.mathworks.com> <df86608e-e1ec-47f2-a846-c5e3cdfd8508@k17g2000yqb.googlegroups.com>
NNTP-Posting-Host: 131.188.234.18
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1256887354 6109 127.0.0.1 (30 Oct 2009 07:22:34 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 30 Oct 2009 07:22:34 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: j19g2000yqk.googlegroups.com; posting-host=131.188.234.18; 
	posting-account=eSE2MwoAAAAqoP4uVtyslepjsEVCHTXr
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.3) 
	Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:581211


On 29 Okt., 18:18, Praetorian <ashish.sadanan...@gmail.com> wrote:
> On Oct 29, 10:49 am, "James Tursa"
>
> <aclassyguy_with_a_k_not_...@hotmail.com> wrote:
> > Ralf <meteora...@gmx.net> wrote in message <a23855e8-0d6f-4496-b672-014203e21...@p15g2000vbl.googlegroups.com>...
>
> > > I am trying tocompilea MEX-file, which uses an external library
> > > function. The library is available as "tcdlls.lib".
>
> > > I have tried
> > > also copying the .lib file to the working directory, but this did not
> > > help.
>
> > What mex command did you use when you tried this method? I would expect this to work:
>
> > mex timestwo.c tcdlls.lib
>
> > James Tursa
>
> Do as James suggested, do no use the -l or -L directives, just list
> the .lib files along with the list of source files. You can either
> copy the library to the working directory or enter the path to
> wherever it is located.
>
> HTH,
> Ashish.

Thank you all,

using the commands

mex timestwo.c tcdlls.lib

or

mex timestwo.c "C:\......\tcdlls.lib"

works without problems.

Ralf