You can create a shareable library by using one of the following compiler options:
Compiler Option |
OS Support |
Library |
---|---|---|
-shared |
Linux |
mylib.so |
/libs:dll |
Windows |
mylib.dll |
When you use any of these options, do not specify the c option.