News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Generate binary with link files

Started by alexcp, October 17, 2011, 08:56:58 PM

Previous topic - Next topic

alexcp

Hi, i'm creating a program using gtk, i need to deploy it with the dll dependency inside it.
Someone know how to do it, i found something about shared = 0.
Someone know how to help me?

Thanks.

MortenMacFly

Quote from: alexcp on October 17, 2011, 08:56:58 PM
Someone know how to help me?
Google for "static linking", then get the static libraries for your dependencies, setup the project to use (link against) the static libraries, probably instrument the compiler/linker switches accordingly and you are done.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

reckless

Im afraid if he is on windows then the dynamic build is the only option as theres no way to build gtk statically on windows.
The reason for that was explained by thor lilquist (gtk dev) to be because static builds would have problems with the gtk config files.
Another thing would be that the executables will be pretty massive if linked statically even after stripping.