Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: cdavalillo on January 04, 2022, 12:04:05 pm

Title: Link statically just some libs
Post by: cdavalillo on January 04, 2022, 12:04:05 pm
Hi, I would like to know how I can link statically some libs and at the same time in the same project link other libs dynamically. I just want to incorporate in my project code from a few libs but the remainder can be linked dynamically.

Thank you in advance for the help.

PD: let me know if this is not possible or is a stupid question.
Title: Re: Link statically just some libs
Post by: Miguel Gimenez on January 04, 2022, 12:47:34 pm
Linking with static and dynamic libraries is no different, in the latter case you will need the DLL (or SO) file but only at runtime.