PDA

View Full Version : Version portability question



whatifwe
February 7th, 2010, 08:13 PM
I am a programmer with Windows not Linux experience. An application program that I have written works with 32-bit version of Ubuntu 9.04 and not with a 64-bit version of Ubuntu 9.10. The program is written as a command line CPP program compiled with C++.
In the 64-bit compilation in Ubuntu 9.10, are the data types "long" and "unsigned long" 64-bits in size? If so, that would explain why the program is not functioning?

Thank You

Robert Adams

Bachstelze
February 7th, 2010, 08:56 PM
In the 64-bit compilation in Ubuntu 9.10, are the data types "long" and "unsigned long" 64-bits in size? If so, that would explain why the program is not functioning?

Yes. This is also the case in every other UNIX-like system you're likely to find today.

Flimm
February 7th, 2010, 09:02 PM
I'll think you'll find that the Programming Talk subforum (http://ubuntuforums.org/forumdisplay.php?f=39) is a better place to ask this question. This is "Absolute Beginner Talk", after all.