MATLAB: How to run .mexw64 file in ubuntu 14.04

mex

My program uses .mexw64 file in its process with adding the .mexw64 file path. When I run my program in Windows PC, it runs well. However, on the linux PC (ubuntu 14.04), it gives me error that 'undefined function or variable' with same code.
Is there any way to solve this? I check the gcc version. it was 4.8.4

Best Answer

.mexw64 is a Windows x64 DLL. To use it on Ubuntu you would need to be running the 64 bit MS Windows version of MATLAB under a Windows emulator such as Wine.
If the source code is available it would be better to rebuild the DLL for use with Linux.