Prev: printing Matlab Models with subsystem to PDF in commandline
Next: Calling Matlab engine from C++
From: Jonathan Randall on 11 Feb 2010 18:50 I am having problems linking to the libeng.lib library. I have done this successfully on a 32-bit machine with both VS and eclipse, but there is a problem when the libeng.lib file is in the matlabroot/extern/lib/win64/microsoft directory (My VS is installed in the Program Files (x86) directory). I am getting the LNK2019 error. The engdemo.cpp file seems to compile and link in matlab with the mex compiler only if I am running Matlab as and administrator. I have included the libeng.lib, libmx.lib and libut.lib libraries and the library directory in the linker options and the include directory (engine.h) in the C/C++ options. I am not sure if this a 32-bit/64-bit compatibility error, and the specified lib files are not in the win32/microsoft directory, only in the win64/microsoft directory. Does anyone know what the problem is? You help would be appreciated. Regards, Jonathan.
From: Jonathan Randall on 12 Feb 2010 03:04 I solved the problem. Had to go to Build->Configuration Manager, and change the active Solution platform to x64. Then I had to update some of the DLL's from www.dlldll.com. "Jonathan Randall" <jonnyrandall(a)live.com.au> wrote in message <hl2540$a8h$1(a)fred.mathworks.com>... > I am having problems linking to the libeng.lib library. I have done this successfully on a 32-bit machine with both VS and eclipse, but there is a problem when the libeng.lib file is in the matlabroot/extern/lib/win64/microsoft directory (My VS is installed in the Program Files (x86) directory). I am getting the LNK2019 error. > > The engdemo.cpp file seems to compile and link in matlab with the mex compiler only if I am running Matlab as and administrator. I have included the libeng.lib, libmx.lib and libut.lib libraries and the library directory in the linker options and the include directory (engine.h) in the C/C++ options. > > I am not sure if this a 32-bit/64-bit compatibility error, and the specified lib files are not in the win32/microsoft directory, only in the win64/microsoft directory. > > Does anyone know what the problem is? You help would be appreciated. > > Regards, > Jonathan.
|
Pages: 1 Prev: printing Matlab Models with subsystem to PDF in commandline Next: Calling Matlab engine from C++ |