about the dll
2014-10-29, 04:51 PM
#1
about the dll
There is something I'd like to know about the dynamic libraries : what make a function or a variable will be supposed to be in a such library and not in the main executable ?

Post Reply Quote this message in a reply
2014-10-29, 05:26 PM
#2
RE: about the dll
For most projects, functions and variables from a different project will be in a .dll instead of the .exe.

Best regards,
Victor
//victorz.ca
Code:
Your antithesis compares favorably with any high magnitude of pwnage. (-you > |p|, you < -|p|)
My antithesis compares favorably with _that of_ any high magnitude of pwnage. (|-me| > |-p|, |me| > |p|)
Post Reply Quote this message in a reply
2014-10-30, 03:53 AM
#3
RE: about the dll
It isn't what I mean.

When a compiler make a new executable, it need to know what will be in this executable and what will be found in a dll.

I mean what in the code make the compiler knows if a function or a variable will be or not in the executable and, if not, what will be the name of the dynamic library where find it ?

Post Reply Quote this message in a reply
2014-11-02, 10:59 AM
#4
RE: about the dll
I think source/lib contains .lib files, which can be for both static and dynamic libraries.

Best regards,
Victor
//victorz.ca
Code:
Your antithesis compares favorably with any high magnitude of pwnage. (-you > |p|, you < -|p|)
My antithesis compares favorably with _that of_ any high magnitude of pwnage. (|-me| > |-p|, |me| > |p|)
Post Reply Quote this message in a reply
2014-11-02, 02:46 PM
#5
RE: about the dll
Theorically, MinGW don't use .lib files, the problem must be in the .a files I downloaded.

Post Reply Quote this message in a reply
2014-11-09, 11:53 AM (This post was last modified: 2014-11-09, 11:54 AM by Victor.)
#6
RE: about the dll
In order "to link some code against a DLL (on Windows), you have to link against a .lib file [...] On Unix [...], there is no need for such wrappers (the linker is smart enough to generate them on the fly)".
Also, .a seems to be for Linux while .lib is for Windows, so I'm not sure about how to use .dlls with .a files.

Best regards,
Victor
//victorz.ca
Code:
Your antithesis compares favorably with any high magnitude of pwnage. (-you > |p|, you < -|p|)
My antithesis compares favorably with _that of_ any high magnitude of pwnage. (|-me| > |-p|, |me| > |p|)
Post Reply Quote this message in a reply


Forum Jump: