about cross compiler

hello
i wrote a hello world program on my host(desktop) ubuntu,and when i compile that on beagle board xm its showing "not a directory

Your program might not be cross compiled, check it properly.