Connect to Matlab engine from C in Linux
I'm trying to call the Matlab engine programatically from a C program on Linux (Matlab r2009a, Ubuntu 9.10). I've got my own code (which works in Windows), but for now I'm just trying to get the Matlab "engdemo.c" program to work on Linux. I have managed to compile & link it (after including about 15 -l<lib> switches on the gcc command line), and even resolved all the runtime dynamic links via some ldconfig magic. But, when the program runs, I just get the "Can't start MATLAB engine" error message and the program ends, with no indication of why it failed. Has anybody made this work? What have