Use DLL - dynamic link library - for large code that you want to share
between several applications, or when you want to be able to bug-fix or
extend the library function without sending out the application again.
Normally, for s string class I would recommend static linking, i.e. as a
library (*.a for gcc and other unix-based compilers, *.lib for
windows-based compilers). It is easier to program using static libraries,
and since the size of a string class is so small, there is no need to have
multiple executables sharing the same binary library.
/Per W
On Wed, 4 Jun 2003, Jonas Granqvist wrote:
> Hello everyone!
>
> I have been programming C++ for about six months and I have started to pr=
ogram
> a class to handle text strings (similar to the cstring/string.h) as an ex=
cercise.
> I have after some thinking decided to put my class in a library file (.li=
b or .dll).
> My problems are that I don't know what the difference is. Dlls are someho=
w dynamic,
> right? My question is, which should I use?
>
> My other question is how to use these different kind of libraries. I foun=
d an
> alternative where I could create them, but the projects are all empty. I =
would
> be very glad if someone could show me an example about how to use dll and=
lib
> files together with a program
>
> Thanks in advance.
>
> Jonas Granqvist
>
>
>
>
> __________________________________________________________
> http://www.hotbrev.com/ - N=E4tets farligaste e-postadresser
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Etnus, makers of TotalView, The best
> thread debugger on the planet. Designed with thread debugging features
> you've never dreamed of, try TotalView 6 free at www.etnus.com.
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|