Find the answer to your Linux question:
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 ...
  1. #1
    Just Joined!
    Join Date
    Nov 2009
    Posts
    43

    Question 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.

  2. #2
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    Yes again -m32

    g++ filename.cpp -m32 -o filename
    Make mine Arch Linux

  3. #3
    Linux Guru Rubberman's Avatar
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...