The mexPrintf routine can not be used in a stand-alone application. This is because the mexPrintf routine must be linked with MATLAB. All of the mex* routines must be linked with MATLAB and therefore are unavailable for stand-alone applications. Instead of using mexPrintf, you can just use printf.
Chris Lawton firstname.lastname@example.org
>To everybody: > >I use Matlab version 22.214.171.1240 on Windows NT and Microsoft Visual C++ > >I want to use the C math library which I have done in the past succesfully >with Matlab 5.1. (before downloading the 5.2.1 patch). My MSVC project >includes the follwing libraries: >libmat.lib, libmatlb.lib, libmcc.lib, libmmfile.lib, and libmx.lib > >and the following headers are included: >matlab.h, matrix.h, mcc.h, mex.h, and tmwtypes.h > >The project compliles, but it fails to link giving me the following error: > >error LNK2001: unresolved external symbol _mexPrintf > >Anybody has encountered the same or similar problem? Any solutions? > >Thanks > >Themis Katsianos >R&D, G-VOX Interactive Music >Phialdelphia, PA > >