Thanks,
After locating the header files, I received the following error.
gcc -I/usr/local/MATLAB/R2012a/extern/include/ -L/usr/local/MATLAB/R2012/extern/lib example2.c -lm
/tmp/ccmBsgpB.o: In function `diagnose':
example2.c:(.text+0x32): undefined reference to `matOpen'
example2.c:(.text+0x73): undefined reference to `matGetDir'
example2.c:(.text+0xf3): undefined reference to `mxFree'
example2.c:(.text+0xff): undefined reference to `matClose'
example2.c:(.text+0x137): undefined reference to `matOpen'
example2.c:(.text+0x18e): undefined reference to `matGetNextVariableInfo'
example2.c:(.text+0x1c8): undefined reference to `mxGetNumberOfDimensions'
example2.c:(.text+0x1f0): undefined reference to `mxIsFromGlobalWS'
example2.c:(.text+0x216): undefined reference to `mxDestroyArray'
example2.c:(.text+0x232): undefined reference to `matClose'
example2.c:(.text+0x26a): undefined reference to `matOpen'
example2.c:(.text+0x2c1): undefined reference to `matGetNextVariable'
example2.c:(.text+0x2fb): undefined reference to `mxGetNumberOfDimensions'
example2.c:(.text+0x323): undefined reference to `mxIsFromGlobalWS'
example2.c:(.text+0x349): undefined reference to `mxDestroyArray'
example2.c:(.text+0x365): undefined reference to `matClose'
collect2: ld returned 1 exit status
Thanks!
dpb <
no...@non.net> wrote in message <jojlor$n7e$
1...@speranza.aioe.org>...