AssaultCube Reloaded Forums
about the dll - Printable Version

+- AssaultCube Reloaded Forums (https://acrf.victorz.ca)
+-- Forum: Gameplay (https://acrf.victorz.ca/forum-3.html)
+--- Forum: Help (https://acrf.victorz.ca/forum-6.html)
+--- Thread: about the dll (/thread-1406.html)



about the dll - asmanel - 2014-10-29

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 ?


RE: about the dll - Victor - 2014-10-29

For most projects, functions and variables from a different project will be in a .dll instead of the .exe.


RE: about the dll - asmanel - 2014-10-30

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 ?


RE: about the dll - Victor - 2014-11-02

I think source/lib contains .lib files, which can be for both static and dynamic libraries.


RE: about the dll - asmanel - 2014-11-02

Theorically, MinGW don't use .lib files, the problem must be in the .a files I downloaded.


RE: about the dll - Victor - 2014-11-09

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.