Difference between Static Linkable Library and DLL

Everything else that doesn't fall into one of the other PB categories.
jb
User
User
Posts: 37
Joined: Wed Jul 14, 2004 11:58 pm
Location: United States

Difference between Static Linkable Library and DLL

Post by jb »

Not sure if this belongs in this topic.

I know that you can use a DLL with the Library functions but can a Static Linkable Library be used with PureBasic?

I really am not quite sure of the difference between a Static and Dynamic library.
-jb
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Static = functions get put into your programs exe
Dynamic = function stays in the library
okasvi
Enthusiast
Enthusiast
Posts: 150
Joined: Wed Apr 27, 2005 9:41 pm
Location: Finland

Post by okasvi »

viewtopic.php?t=16485

is thread about linking .obj / .lib files into your PB code and use them from there...
jb
User
User
Posts: 37
Joined: Wed Jul 14, 2004 11:58 pm
Location: United States

Post by jb »

Okay. I think I understand the difference.

Thanks Trond and okasvi!
-jb
Seldon
Enthusiast
Enthusiast
Posts: 405
Joined: Fri Aug 22, 2003 7:12 am
Location: Italia

Post by Seldon »

Don't mix static LIB or OBJ (where true code is linked to your EXE) with automatic linking of DLLs at load time. When you link a LIB of a DLL, usually you don't include the code, but you make Windows open the DLL for you when your EXE is executed. So you don't need to open manually the DLL and find the functions.
Post Reply