How to make an executable from a shared library on Mac OSX?
3 views (last 30 days)
Show older comments
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?
0 Comments
Answers (1)
Walter Roberson
on 25 Sep 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.)
0 Comments
See Also
Categories
Find more on C Shared Library Integration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!