News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Static linking

Started by dnaxx, January 03, 2008, 08:41:01 PM

Previous topic - Next topic

dnaxx

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,

SplinterOfChaos

What do you know, I was just wondering that!

*bump*

stahta01

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++.
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]