Here is the actual commands used to build and link the libs. However, when I attempt to build a simple example linked to these libraries, I get an error. However, as I am using mingw-w64 my command was actually x86_64-w64-mingw32.static-dlltool -d f -l libmx.a public: _cdecl ::(class const &_ptr64 public: _cdecl ::(struct mxArray_tag public: _cdecl public: _cdecl matrix::serialize::Exception::Exception(class matrix::serialize::Exception const &_ptr64 public: _cdecl public: _cdecl matrix::serialize::FailedUCNV::FailedUCNV(class matrix::serialize::FailedUCNV const &_ptr64 public: _cdecl public: _cdecl Mprotected_mxArray::Mprotected_mxArray(class Mprotected_mxArray const &_ptr64 public: _cdecl Mprotected_mxArray::Mprotected_mxArray(struct mxArray_tag public: _cdecl public: _cdecl RRTableVisitor::RRTableVisitor(class RRTableVisitor const &_ptr64 then attempted to create an import library based on the instructions provided for Mingw here. Here's a snippet of the resulting definition file f I have attempted both of these steps, first the creation of definition files for each library, which I did with the following command: gendef libmx.dll def files, and maybe that I need to create another link library of some kind to actually link to. I am vaguely aware that I need to extract definitions from the dlls, into. However, I don't think any Matlab knowledge is required to answer the question. To explain exactly what I am doing, I want to cross-compile Matlab mex files from Linux and need to link to the Matlab libraries libmex.dll, libmx.dll and libmat.dll.
MATLAB R2013A SUPPORT FOR MINGW C COMPILER CODE
I do not have the source code of these dlls, only the header files and compiled binary Compiled using what? I do not know but likely Visual Studio. In my case the final step requires linking to several third party compiled dlls.
MATLAB R2013A SUPPORT FOR MINGW C COMPILER 64 BIT
I would like to cross compile C++ projects for Windows 64 bit from Linux using the mingw-w64 tools (Actually I am using M Cross Environment which is based on mingw-w64, but I don't think this is relevant to the question).