Author Topic: What is the different between Dynamic Link Library and Shared Library?  (Read 1526 times)

Offline gh_origin

  • Multiple posting newcomer
  • *
  • Posts: 48
What's the different between these two project types? On Windows, it seemed they both produce a .dll file. Correct me if I'm wrong, does Dynamic Link Library project type is for C++ and Shared Library project type is for C? They really confused me. I don't know which one I should choose.

For example, if I want to make a Zlib DLL, which project type I should choose? Thanks for help.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7179
    • My Best Post
Re: What is the different between Dynamic Link Library and Shared Library?
« Reply #1 on: December 03, 2020, 05:39:59 pm »
My guess is "Shared Library" is for non Windows OSes and DLL is for Windows OS.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline gh_origin

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: What is the different between Dynamic Link Library and Shared Library?
« Reply #2 on: December 04, 2020, 08:42:58 am »
My guess is "Shared Library" is for non Windows OSes and DLL is for Windows OS.

Tim S.

I think you're right. Both of them produce a working DLL file. As I'm on Windows, I will choose the DLL project template. Thanks.