Samuel Keding <big...@ya...> writes:
> Does anyone know where I can get a good tutorial
> online on how to create and use a .dll file.
If you really want to understand libraries in general, I suggest you
read:
Linkers and Loaders <http://linker.iecc.com/>
I've been using libraries for a long time and this book explained what
I have been doing all those years.
The newer libtools have greater support for building DLL's but to just
build one quickly, here is an example, courtesy Luke Dunstan:
g++ -shared -Wl,--output-def,lib/example.def -Wl,--out-implib,lib/libexample
.dll.a -Wl,--export-all-symbols -Wl,--add-stdcall-alias -o example.dll
example.o -lpng12 -ltiff -lz -ljpeg -lungif -lm -lgdi32
Here, example.o is the only object file and there are many libraries
that need to be linked in at run-time.
Elizabeth
|