Author Topic: how add 2 dll's to exe file?  (Read 4371 times)

Offline cambalinho

  • Multiple posting newcomer
  • *
  • Posts: 93
how add 2 dll's to exe file?
« 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?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: how add 2 dll's to exe file?
« Reply #1 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.
(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!]

Offline cambalinho

  • Multiple posting newcomer
  • *
  • Posts: 93
Re: how add 2 dll's to exe file?
« Reply #2 on: September 06, 2015, 07:59:22 pm »
so how can i avoid that 2 files dependencies?
(honestly i hate dependencies :( )

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: how add 2 dll's to exe file?
« Reply #3 on: September 06, 2015, 08:16:51 pm »
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!]

Offline cambalinho

  • Multiple posting newcomer
  • *
  • Posts: 93
Re: how add 2 dll's to exe file?
« Reply #4 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 :(

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: how add 2 dll's to exe file?
« Reply #5 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!
(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!]