I suggest you look at the examples installed in your "examples"
directory. While they have tried to follow ANSI C in most things,
there are some differences. For example, there is no <stdio.h>.
Instead it is <hpstdio.h>. These are found in the "include" directory.
Spend about 45 mintues looking at all the examples included with the
installation and you will find that it is quite easy. Some are
outdated, but all will compile and work.
However, trying to link libraries written for one system into a
completely different system seems a little silly to me. . .