delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/11/05/11:52:52

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
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 <chartier AT babbage DOT colorado DOT edu>
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: <Pine.GSO.4.05.9911050835410.5720-100000@newton.colorado.edu>
MIME-Version: 1.0

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019