Standalone C programs with matlab engine
Fri Nov 5 07:50:00 GMT 1999
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:
I also referred to:
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.
Want to unsubscribe from this list?
Send a message to firstname.lastname@example.org
More information about the Cygwin