Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
General (but related to Code::Blocks)
»
how add 2 dll's to exe file?
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: how add 2 dll's to exe file? (Read 4488 times)
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?
Logged
oBFusCATed
Developer
Lives here!
Posts: 13413
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.
Logged
(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
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
)
Logged
oBFusCATed
Developer
Lives here!
Posts: 13413
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?
Logged
(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
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
Logged
oBFusCATed
Developer
Lives here!
Posts: 13413
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!
Logged
(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!]
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
General (but related to Code::Blocks)
»
how add 2 dll's to exe file?