It seems like you have different OS on laptop/desktop and SGE. For different architectures you need to re-mex
your c++ code.
Configure mex
on your sge
>> mex -setup
I strongly recommend using gcc
. Now you can mex
your c++ code. Note that the file extension for the mex files is different on windows/sge as well as 32bit and 64bit systems.
If you don't have the right extension for the mex file (can be checked using mexext
command) Matlab cannot find the function to run and you get an error sinilar to what you got.
Happy Chanukah.