News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

What is the different between Dynamic Link Library and Shared Library?

Started by gh_origin, December 03, 2020, 03:00:38 PM

Previous topic - Next topic

gh_origin

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.

stahta01

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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

gh_origin

Quote from: stahta01 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.

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.