Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started 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?
-
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.
-
so how can i avoid that 2 files dependencies?
(honestly i hate dependencies :( )
-
Have you search the manual of gcc for the word static?
-
i'm doing it, but what i'm loking for?
i didn't find what i need :(
-
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!