Include the appropriate .c files from Heckbert's code in your Makefile
plus make some simple changes to the source code that modifies the declarations
(because it is invalid in C++ to declare parameters outside the method head).
For example, in pmap_poly.c change
pmap_poly(p, ST)
poly *p;
double ST[3][3];
to:
int pmap_poly( poly* p, double ST[3][3])