Author Topic: Link statically just some libs  (Read 3597 times)

Offline cdavalillo

  • Multiple posting newcomer
  • *
  • Posts: 14
Link statically just some libs
« 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.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1485
Re: Link statically just some libs
« Reply #1 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.