Hi guys, anyone has an idea why the same code "iOperand_0 - iOperand_1" would give a different result in linux?
1. OS Windows 7 Pro 64bit / Ubuntu Linux 18.04 64 bit.
2. IDE and compiler: Codeblocks with mingw and GCC.
3. Problem: I use the same code and compiled in on both the windows and linux version, but the result is different. On windows everything works and I get the right result. On linux I get (1--2 = -3).
1. OS Windows 7 Pro 64bit / Ubuntu Linux 18.04 64 bit.
2. IDE and compiler: Codeblocks with mingw and GCC.
3. Problem: I use the same code and compiled in on both the windows and linux version, but the result is different. On windows everything works and I get the right result. On linux I get (1--2 = -3).
Code:
1--2 = -3 in Linux.
1--2 = 3 in Windows.
Last edited: