I would take a look on the MathWorks web site: http://www.mathworks.com/support/tech-notes/1600/1601.html Best regards, -John -----Original Message----- From: SPM (Statistical Parametric Mapping) [mailto:[log in to unmask]] On Behalf Of Yasser Aleman Sent: Wednesday, September 05, 2007 12:59 PM To: [log in to unmask] Subject: [SPM] Any help will be appretiate Hi everyone I have tried to compile a cpp file to use it in matlab as a mexglx . I compiled it already for windows and it works very well but in Linux it doesn't work. When I run the compiled mexglx it give an error with some matlab library. I can run very well the mexglx from spm but I can run mine. Any suggestion will be very helpful for me. Here I am sending the code. It is very simple, just a cpp code to find, in a mesh, the triangles that each point belongs. Thanks, Yasser Aleman Gomez Neuroimaging Lab Cuban Neuroscience Center