I am written a C++ MEX file which calls functions that are located in other C++ source files. When I attempt to mex the file which contains the gateway function, I receive the following error:
LINK : error LNK2001: unresolved external symbol mexFunction C:\DOCUME~1\E445337\LOCALS~1\TEMP\MEX_5Y~1\templib.x : fatal error LNK1120: 1 unresolved externals E:\PROGRA~1\MATLAB\R2009A\BIN\MEX.PL: Error: Link of 'InPassage.mexw32' failed. ??? Error using ==> mex at 218 Unable to complete successfully.
Best Answer