20.6.6 Compiling and Linking

To compile and link the Select library, you must create the makefile, as follows:

select.obj: select.c select.h
    cl /c /Asnw /Gsw /W3 /Os /Zp select.c

select.dll: select.obj
    link select libentry,select.dll,,/noe /nod sdllcew libw,select.def
    rc select.dll
    implib select.lib select.def

After you have compiled and linked the Select library, you can create a small test application to confirm that it is working properly. For a description of an application that uses the selection functions, see Chapter 11, “Bitmaps,” or Chapter 13, “Clipboard.”