Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
libeng.lib win64

Subject: libeng.lib win64

From: Jonathan Randall

Date: 11 Feb, 2010 23:50:24

Message: 1 of 2

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.

Subject: libeng.lib win64

From: Jonathan Randall

Date: 12 Feb, 2010 08:04:04

Message: 2 of 2

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@live.com.au> wrote in message <hl2540$a8h$1@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.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us