You may have some solutions in our MATLAB C/C++ Book (at
Young Park wrote:
> I have a diffculty trying to follow an example of a recent Webinar
> "Matlab for C/C++ Programmers". One of the example as "Build
> Component example", where a simple m code (foo.m) was converted to
> dll (foolib.dll) that is to be called by a C-program. A dll file
> successfully generated (by invoking 'mcc -t -W libhg:foolib -T
> link:lib -h libmmfile.mlib libmwsglm.mlib foo.m'). Then when I
> cimpile and link the client C code in MS Visual Studio, Link errors
> occur. The messages are something like, ('main.obj : error LNK2001:
> unresolved external symbol _mclGetPi'). I added include and
> files to the projects. Compiling and linking was successfully done
> upto this exercise. Anyone can help identifying what seems to be
> problem. I suspect the linker might not be finding the dll file...
> placed it in various locations, such as in foo directory...