If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: we can add dll's by code?

What do you mean by "add dll's"?
And in which platform?
For example, (if what you meant was "execute some function from dll") in Windows you could use LoadLibrary and GetProcAddress APIs.

what is mean is: the GCC compiler create exe's that are dependent of 2 DLL's(all exe's created with GCC). can i add these 2 DLL's to exe?´
libgcc_s_sjlj-1.dll and libstdc++-6.dll
(i know that because i have tested)

Re: we can add dll's by code?

a DLL is a Dynamic Link Library.

so as the name implies, it does somewhat the same as a .lib (collection of object files) would do, but instead of linking it into the exe itself, they're provided side by side with the exe, and the exe loads the .dll from disk either when it starts or somewhere during it's runtime if and when it is needed.

so no, you don't "link" a DLL into your exe, you provide the files alongside your exe.

if you wanted to get a single .exe file then you shouldn't build DLL's, but make .lib's instead and link those into your exe.

Re: we can add dll's by code?

Originally Posted by OReubens

a DLL is a Dynamic Link Library.

so as the name implies, it does somewhat the same as a .lib (collection of object files) would do, but instead of linking it into the exe itself, they're provided side by side with the exe, and the exe loads the .dll from disk either when it starts or somewhere during it's runtime if and when it is needed.

so no, you don't "link" a DLL into your exe, you provide the files alongside your exe.

if you wanted to get a single .exe file then you shouldn't build DLL's, but make .lib's instead and link those into your exe.

understand, but these DLL's are from GCC. so he tell me for use -static.

i'm trying, but the compiler don't compile
see these lines. they aren't C++(but VB), but you can understand: