Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
about the dll
10-29-2014, 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 ?

Reply
10-29-2014, 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|)
Reply
10-30-2014, 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 ?

Reply
11-02-2014, 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|)
Reply
11-02-2014, 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.

Reply
11-09-2014, 11:53 AM, (This post was last modified: 11-09-2014, 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|)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)