How to make an executable from a shared library on Mac OSX?

In this post , there are instructions for both PC and UNIX:
"On Windows, for example, issue this command:
mbuild vigenere.cpp libvigenere.lib
On UNIX, you link against a .so file instead of a .lib file:
mbuild vigenere.cpp libvigenere.so
In both cases, mbuild produces an executable called vigenere."
However, when I do this on Mac OSX, I get a .app instead of an executable. Is there any way to get an executable on Mac OSX?

답변 (1개)

Walter Roberson
Walter Roberson 2015년 9월 25일

0 개 추천

You can extract the executable from the .app . A .app is a directory which includes several parts including libraries needed to run the executable.
Note: OS-X cannot compile to .exe (at least not at all easily.)

카테고리

도움말 센터File Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

질문:

2015년 9월 25일

답변:

2015년 9월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by