Author Topic: Static linking  (Read 4044 times)

dnaxx

  • Guest
Static linking
« on: January 03, 2008, 08:41:01 pm »
Hello!
Is it possible to configure Code::Blocks in such a way, that external libraries are linked statically?
I'm using the current version of code::blocks under Ubuntu 7.10 and gcc.

Regards,

Offline SplinterOfChaos

  • Single posting newcomer
  • *
  • Posts: 8
Re: Static linking
« Reply #1 on: January 06, 2008, 02:18:43 am »
What do you know, I was just wondering that!

*bump*

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7786
    • My Best Post
Re: Static linking
« Reply #2 on: January 06, 2008, 03:03:34 am »
Build the Library as static and Code::Blocks will link it as static, if given the right options; this assumes the compiler you are using supports static (I think all compilers support static, but might be wrong).
Note, Code::Blocks plug-ins are required to not be static by design; else, you could not enable/disable at run-time.

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org