Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3C56A795.9070305@syntrex.com> Date: Tue, 29 Jan 2002 14:45:57 +0100 From: Pavel Tsekov User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: Cygwin AT cygwin DOT com CC: Tamer Samy abdelazim Subject: Re: call matlab from C References: <3C569613 DOT DFA37EC9 AT yahoo DOT com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Earnie Boyd wrote: > Wrong list!! > > >>Tamer Samy abdelazim wrote: >> >>Hi All ; >> i am using cygwin for windows. I tried to call matlab >>engine from C under cygwin under win2K ... I am always get errors >>from gcc compiler (the error is under) >> I do not know which libmat.a or which liberary i can use.Can you help >>?...thanks in advance. >> >>ERROR I answered you question already - didn't I ? You need to generate a cygwin compatible import lib from the .dll that matlab provide to be able to link you app. P.S. As I said in my previous post do not post to my personal e-mail instead stick posting/replying to the appropriate mailing list. >>$ make >>gcc -o TPSS_ML main.o run_matlab.o msg.o strace.o libmat.a -lm >>run_matlab.o(.text+0x25):run_matlab.c: undefined reference to >>`engEvalString' >>run_matlab.o(.text+0x3b):run_matlab.c: undefined reference to >>`engGetMatrix' >>run_matlab.o(.text+0x4f):run_matlab.c: undefined reference to >>`mxGetPr' >>collect2: ld returned 1 exit status >>make: *** [TPSS_ML] Error 1 >> >>Tamer mohamed samy abdelazim Mellik >>Home (+1 403) (2614630) >>Office (+1 403) (2206077) >>Lab. (+1 403) (2109545) >>http://www.enel.ucalgary.ca/~abdelasi/ >>#1203, 505 6 St. SW >>T2P 1X5 >>Calgary AB >>Canada >> > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/