<div dir="ltr">Hi,<div><br></div><div>I solved my own problem so I thought I would reply in case someone else runs into this issue.</div><div><br></div><div>The problem is that when SPM (or SPM functions) are compiled, they search for a file called Contents.txt in the compiled spm directory; however, this file is not created when only some of the SPM functions are compiled through FieldTrip. Contents.txt is a copy of the Contents.m file found in SPM directories, so the solution was to copy Contents.m, rename it Contents.txt and to place this file in the compiled SPM directory. Note that for me at least, the compiled directories do not appear until the compiled code is run for the first time. </div><div><br></div><div>I hope that saves someone some time one day!</div><div><br></div><div>Paul</div></div>