A system() call should work as well. A larger problem is dynamically executing functions that have just been compiled.
For that to work, host needs a language environment installed. Or maybe you mean distributing compiler with the project?
-- Using Opera's revolutionary email client: http://www.opera.com/mail/