Standalone C programs with matlab engine

Tim Chartier chartier@babbage.colorado.edu
Fri Nov 5 07:50:00 GMT 1999


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@sourceware.cygnus.com



More information about the Cygwin mailing list