A program that I have written in C++ in Snow Leopard (OSX v10.6) runs properly on my computer. When I copy this program into a folder on another Mac running Leopard (OSX v10.5) and Ubuntu, and run it, the program segfaults. Suddenly, none of the variables and objects are instantiated properly and I'm getting garbage data in spots where there should be no data at that point.
Has anyone encountered a similar problem or know what could be the possible cause of this?
Thanks.