Author Topic: Generate binary with link files  (Read 4524 times)

alexcp

  • Guest
Generate binary with link files
« on: October 17, 2011, 08:56:58 pm »
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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Generate binary with link files
« Reply #1 on: October 17, 2011, 09:41:28 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline reckless

  • Regular
  • ***
  • Posts: 353
Re: Generate binary with link files
« Reply #2 on: October 18, 2011, 08:56:11 pm »
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.