>> Is there a better way to link to c++? > > Does it work with just -pgml, or do you need -pgmc too? Wow, you're right. Just removing -pgmc solves the problem. For some reason I just assumed pgmc was necessary if pgml was. Thanks!