This is not a problem associated with "mat files" exactly. You're obviously
using some library routines from somewhere and have not included them
correctly in your project.
So the question is: What library are you using, and how are you including it
in your project?
"ilias" <firstname.lastname@example.org> wrote in message
> I am having trouble creating mat files from my visual studio 2005
> express. For example, the
> matcreat.c file that is given as an example in the mathworks site,
> produced 13 linking errors of this type:
> 1>matcreat.obj : error LNK2019: unresolved external symbol _mxGetString
> referenced in function _main
> this happened although I set up the VC++ directories for include files
> and libraries to point to the matlab\extern\include and
> matlab\extern\lib\ respectively.
> Any help will be greatly appreciated. Thank you
> PS. Some secondary questions I have:
> (a) mex -setup "sees" only the lcc compiler and not the msvc as it
> should from visual studio 2005. I did add the cl.exe path to the
> environmental variable path but the result is the same. I recently
> installed the 9.1 intel compiler, same problem.
> (b)If you have played with vms isual c++ 2005, there is supposed to be
> a "compile tab" in the solution manager. Any thoughts why there is not
> in mine ?