Should work fine so long as the routines are marked as extern "C".