# Create Shared Libraries

You can create a shareable library by using one of the following compiler options.

Compiler Option | Library
--- | ---
-shared (Linux*) | mylib.so
/libs:dll (Windows*) | mylib.dll
-dynamiclib (macOS) | mylib.dylib

When you use any of these options, do not specify the c option.

Parent topic: Fortran Language Extensions

## See Also

shared compiler option
dynamiclib compiler option
libs:dll compiler option
Linux* and macOS: Creating Shared Libraries
Storing Routines in Shareable Libraries
macOS: Using Shared Libraries on macOS