This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Standalone C programs with matlab engine
- To: cygwin at sourceware dot cygnus dot com
- Subject: Standalone C programs with matlab engine
- From: Tim Chartier <chartier at babbage dot colorado dot edu>
- Date: Fri, 5 Nov 1999 08:50:11 -0700 (MST)
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