Results 1 to 3 of 3
Hi All,
I recently upgraded OS to its 64-bit version, namely, Ubuntu 9.10 64-bit.
After that, I began to experience anomalies (missing output data, infinite loops, etc) when executing my ...
- 01-25-2010 #1Just Joined!
- Join Date
- Nov 2009
- Posts
- 43
run-time problems due to migration from x86 to x86_64
Hi All,
I recently upgraded OS to its 64-bit version, namely, Ubuntu 9.10 64-bit.
After that, I began to experience anomalies (missing output data, infinite loops, etc) when executing my C++ application, which was previously running without any problems on x86.
Even though there is no application crash, I suspect that some third-party libraries along with even my own sources have problems due to the incompatibilities in data type lengths between x86 and x86_64.
I am in a situation where debugging the sources to find out about the real cause of the problem is difficult...
I want to hear about your suggestions.
Can I build my application using GCC compiler options with x86 settings on a x86_64 platform ?
Even if I am allowed to do that, is it really the right thing to do ? What might be the negative side-effects ?
Thanks.
- 01-25-2010 #2
Yes again -m32
g++ filename.cpp -m32 -o filenameMake mine Arch Linux
- 01-26-2010 #3Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
If you use the -m32 option then you need to make sure you have 32-bit versions of all required libraries that are going to be linked.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote