How can I link a 3rd party .dll during compilation. It's something that is
not clear to me. In order to aoi it I'm trying to generate a lib file out of
the .dll as I hae already mentioned in an earlier message.
You don't link directly to the DLL at compilation time. You use the associated .lib file and the resulting executable is linked to the DLL. But this does not change the fact that the mex file needs to find the dependent libraries. The Windows OS can find dependent libraries in:
1) the same directory as the executable
2) in a directory that is included in your PATH environment variable
Michael.