My cpp project compiles and runs as well successfully with correct results in a linux based pc. But the same cpp project luckily gets compiled in xillinux platform on Zedboard but while running it makes a logical error in computation and eventually aborts as its programmed to abort if something goes wrong.
Error:
Assertion fails and then aborts and gets cored dumped.
The assertion is to check a variable's value if its less than or equal to 1. But it gets a value 255 instead 1 or 0 or -1.
Gcc compiler version in my pc running centos:
gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC)
Gcc compiler version in xillinux (zedboard):
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
It seems to be some incompatibility but not sure about the cause. How to get rid of this problem?
Can anyone help me in this please..?
Thanks.
-Mahesh.