# How to make a shared library?

**URL:** <https://forums.developer.nvidia.com/t/how-to-make-a-shared-library/135248>\
**Category:** Legacy PGI Compilers (archived)\
**Created:** [March 26, 2017, 2:02am UTC](https://forums.developer.nvidia.com/t/how-to-make-a-shared-library/135248 "2017-03-26T02:02:57Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![cyfengMIT](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@cyfengMIT](https://forums.developer.nvidia.com/u/cyfengMIT)\
**Post date:** [March 30, 2017, 10:26am UTC](https://forums.developer.nvidia.com/t/how-to-make-a-shared-library/135248/3 "2017-03-30T10:26:54Z")

</div>

Hi Mat,

It works! Thanks for your suggestion.  
And I want to make sure that does it mean I can only put all the device related data, subroutines and functions into the module cuda\_so\_f90 for making shared objects and DLLs ?  
Are there any concerns beyond this design ?

CY

---

_[View the full topic](https://forums.developer.nvidia.com/t/how-to-make-a-shared-library/135248)._
