Thanks in advance, Hans
A very well-written tutorial on that very subject can be found in this
forum thread:
http://www.daniweb.com/forums/thread41309.html
I think you'll have to join the forum {no charge} in order to download
that PDF file. Also take note of the correction mentioned in the
third post in that thread. The tutorial uses GCC for the linking...
you can get that here:
Nathan.
Best regards, Hans