Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: dnaxx on January 03, 2008, 08:41:01 pm

Title: Static linking
Post by: dnaxx 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,
Title: Re: Static linking
Post by: SplinterOfChaos on January 06, 2008, 02:18:43 am
What do you know, I was just wondering that!

*bump*
Title: Re: Static linking
Post by: stahta01 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