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?

Respuestas (1)

Walter Roberson
Walter Roberson el 25 de Sept. de 2015
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.)

Categorías

Más información sobre C Shared Library Integration en Centro de ayuda y File Exchange.

Preguntada:

el 25 de Sept. de 2015

Respondida:

el 25 de Sept. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by