From: James Tursa on
"Wenbin Wang" <zilong7788(a)qq.com> wrote in message <i01nd2$bqs$1(a)fred.mathworks.com>...
>
> I try your advice, it seems the question has been solved, but new problems appear:
>
> >> mex sba.c
> sba.obj .text: undefined reference to '_sba_motstr_levmar'
> sba.obj .text: undefined reference to '_sba_mot_levmar'
> sba.obj .text: undefined reference to '_sba_str_levmar'

The linker can't find functions sba_motstr_levmar, sba_mot_levmar, and sba_str_levmar. Is the source code for these functions missing from your file? Do you need to link in another file?

James Tursa