News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

how add 2 dll's to exe file?

Started by cambalinho, September 03, 2015, 09:00:21 PM

Previous topic - Next topic

cambalinho

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?

oBFusCATed

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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

cambalinho

so how can i avoid that 2 files dependencies?
(honestly i hate dependencies :( )

oBFusCATed

Have you search the manual of gcc for the word static?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

cambalinho

i'm doing it, but what i'm loking for?
i didn't find what i need :(

oBFusCATed

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!
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]