Code::Blocks

User forums => General (but related to Code::Blocks) => Topic started by: cambalinho on September 03, 2015, 09:00:21 pm

Title: how add 2 dll's to exe file?
Post by: cambalinho on September 03, 2015, 09:00:21 pm
ok.. i found 2 dll dependent files of compiler file:
1 - libgcc_s_sjlj-1.dll ;
2 - libstdc++-6.dll ;
how can i add these 2 files or it's libraries to exe?
Title: Re: how add 2 dll's to exe file?
Post by: oBFusCATed on September 03, 2015, 11:31:20 pm
You need static libs, but I suppose if you link two these statically your app will become gpl licensed.
Search gcc manual for some static flags.
Title: Re: how add 2 dll's to exe file?
Post by: cambalinho on September 06, 2015, 07:59:22 pm
so how can i avoid that 2 files dependencies?
(honestly i hate dependencies :( )
Title: Re: how add 2 dll's to exe file?
Post by: oBFusCATed on September 06, 2015, 08:16:51 pm
Have you search the manual of gcc for the word static?
Title: Re: how add 2 dll's to exe file?
Post by: cambalinho on September 06, 2015, 08:32:04 pm
i'm doing it, but what i'm loking for?
i didn't find what i need :(
Title: Re: how add 2 dll's to exe file?
Post by: oBFusCATed on September 06, 2015, 09:18:49 pm
Obviously you need -static-libgcc and -static-libstdc++...
I don't know if they are supported on the compiler/os you're using.

For more details see here: https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html
And do something for your searchfu!