Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com X-Authentication-Warning: newton.colorado.edu: chartier owned process doing -bs Date: Fri, 5 Nov 1999 08:50:11 -0700 (MST) From: Tim Chartier X-Sender: chartier AT newton DOT colorado DOT edu To: cygwin AT sourceware DOT cygnus DOT com Subject: Standalone C programs with matlab engine Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Hello: I am trying to use the MATLAB engine to create standalone C programs that call MATLAB. I have installed cygwin 20.1 using full.exe. I need the gcc and the g77 compilers. So, I also installed gcc 2.95 release from: ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/cygwin/gcc-2.95/ I also referred to: ftp://ftp.physiol.ox.ac.uk/pub/matthew.brett/Cygnus/gnumex20.html for help with mex-ing with cygwin. I was able to mex the Matlab API example yprime.c. But, when I tried the following I got an errors: >> mex -f c:\matlab\bin\gw32engmatopts.bat c:\matlab\extern\examples\eng_mat\engdemo.c engdemo.obj(.text+0x2a7):c:\matlab\exte: undefined reference to `_impure_ptr' engdemo.obj(.text+0x385):c:\matlab\exte: undefined reference to `_impure_ptr' engdemo.obj(.text+0x43a):c:\matlab\exte: undefined reference to `_impure_ptr' collect2: ld returned 1 exit status C:\MATLAB\BIN\MEX.BAT: Link of 'engdemo.dll' failed. I was trying to compile the stand alone c program found in the MATLAB API guide. What have I done wrong? Any assistance with my misunderstanding would be appreciated. Thank you for your time. Tim Chartier -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com