I think you may be able to do it if you don't actually link the programs. Have them be separate processes, and communicate over a socket or named pipe or similar.
But really, I agree with the first poster. If you are planning to use GPL code in a non-GPL project, there are a few good options:
- Consult a lawyer versed in these kinds of issues
- Release the code to your entire project as GPL
- Don't use the GPL code in the place
- Contact authors of GPL code, offer them compensation in exchange for a license with less restrictions on your freedom to use their code.