Asked • 05/06/19

What are the differences between .so and .dylib on osx?

.dylib is the dynamic library extension on OSX, but it's never been clear to me when I can't / shouldn't use a traditional unix .so shared object.Some of the questions I have: - At a conceptual level, what are the main differences between .so and .dylib? - When can/should I use one over the other? - Compilation tricks & tips (For example, the replacement for gcc -shared -fPIC, since that doesn't work on osx)

1 Expert Answer

By:

Leo P. answered • 08/19/23

Tutor
New to Wyzant

Professional C tutor for the University of Central Florida

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.