PDA

View Full Version : link problem when create mexfunction


mathelp
09-20-2005, 01:35 AM
I am try to create a mexfunction from fortran 77 programs. I followed every step in Matlab Compatibility notes. When I try to build the MEX file, I got following error message:

smacng128.lib(fft2d_intel.obj) : error LNK2001: unresolved external symbol _zfft2d_
jwst128.dll : fatal error LNK1120: 1 unresolved externals

smacng128.lib is the library I build, it contain the object file fft2d_intel.obj and othe OBJ files.
I am not sure what to make of this error.

Could some one give me some suggestion?

Thanks.

Lahey Support
09-23-2005, 07:45 PM
From the error the library smacng128.lib references zfft2d but does not supply a definition for it. You may need other code or another library that provides the definition, or you may have a typo in the code you are compiling.