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?

Answers (1)

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.)

Categories

Asked:

on 25 Sep 2015

Answered:

on 25 Sep 2015

Community Treasure Hunt

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

Start Hunting!