Various functions get linked together, so compiling is a bit more complicated.
Try running the following (from outside MATLAB):
make Linux
There is a Makefile that specifies how the functions should be compiled.
Best regards,
-John
On Thursday 28 February 2008 22:30, Huiling Peng wrote:
> Hi Dear friends -- As a test, I recompiled spm_brainwarp.c in spm2 using
> the command "mex spm_brainwarp.c". It gives me error message like:
>
> spm_brainwarp.o(.text+0x12c): In function `mrqcof':
> spm_brainwarp.c: undefined reference to `AbackslashB'
> spm_brainwarp.o(.text+0xb75):spm_brainwarp.c: undefined reference to
> `MtimesX'
> spm_brainwarp.o(.text+0xc89):spm_brainwarp.c: undefined reference to
> `resample_d'
> spm_brainwarp.o(.text+0xccd):spm_brainwarp.c: undefined reference to
> `resample'
> spm_brainwarp.o(.text+0xd09):spm_brainwarp.c: undefined reference to
> `MtimesX'
>
> .....
>
> mex: link of 'spm_brainwarp.mexglx' failed.
>
> I am using matlab 7.4.0, fedora core 4, gcc version 4.0.0. Also I
> checked that matlab 7.4 is built with gcc/g++ version 4.1.1.
>
> Anyone knows the reason and how to solve it?
>
> Thanks
> Huiling
|