필터 지우기
필터 지우기

Compile C++ for Unix environment

조회 수: 2 (최근 30일)
William White
William White 2016년 12월 19일
댓글: Walter Roberson 2016년 12월 21일
Sirs, I have some C++ code that is currently compiled to operate within Matlab in a Windows environment (Mex'ed).
I wish to run the Matlab code within a Unix environment, which means re-compiling the C++ code.
Can I re-compile the code within a Windows environment so that it works on Unix? Or do I need to use Matlab on a Linux machine to compile the code?
kind regards W
  댓글 수: 3
William White
William White 2016년 12월 19일
Hi Jose-Luis, yes, I think that is inevitable, but thought there might be a way around it without the need to getting a linux environment installed! Thanks, W
Walter Roberson
Walter Roberson 2016년 12월 21일
You would have to install a Windows emulator on the Linux system.

댓글을 달려면 로그인하십시오.

채택된 답변

Mandar Patwardhan
Mandar Patwardhan 2016년 12월 21일
If you wish to run the Matlab code within a Unix environment then you will have to compile it on a Linux machine. Compiling on a Windows machine will not work in this case.
Take a look at the Tips section in the following link which talks about platform specific extensions for mex. https://www.mathworks.com/help/matlab/ref/mex.html?searchHighlight=mex&s_tid=doc_srchtitle#moreabout

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by