Compile a 32-bit application in a 64-bit environment
Source: Internet
Author: User
Compile a 32-bit application in a 64-bit environment-general Linux technology-Linux programming and kernel information. For more information, see the following. When PITA algorithm is used for target prediction, ViennaRNA package is used for structure folding. This package has been modified. The original package can be installed on our machine. However, the modified package compilation fails. It's a strange mistake. I don't know how to change it.
Fortunately, it has two versions, 64-bit and 32-bit. I got the mainframe to compile a 32-bit file. It was also an error, but it was a namespace problem. I changed the two header files to pass. Calculate again recently. The mainframe was recently removed. It can only be performed on the local machine.
So I had a hard time compiling a 32-bit program in a 64-bit system.
-M32,-m64
Generate code for a 32-bit or 64-bit environment. the 32-bit environment sets int, long and pointer to 32 bits and generates code that runs on any i386 system. the 64-bit environment sets int to 32 bits and long and pointer to 64 bits and generates code for AMD's x86-64 architecture.
3. Compile
Make
4. Installation
Sudo make install
The installation was successful. The PC has been running for many days.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service